css - set value for text shadow property using DOM in javascript -
i want give value text-shadow properties 1 one using dom in javascript. text-shadow: h-shadow v-shadow blur-radius color|none|initial|inherit;
if(conf.hasownproperty('vshadow')) document.getelementbyid('p1').style.text.hshadow = 5px; if(conf.hasownproperty('hshadow')) document.getelementbyid('p1').style.text.vshadow = 5px; if(conf.hasownproperty('blurradius')) document.getelementbyid('p1').style.text.blurradius = 5px; if(conf.hasownproperty('shadowcolor')) document.getelementbyid('p1').style.text.color = red;
i tried above code.but not work. there way using dom in javascript
i dont know if dom objects hshadow, vshadow, blurradius exist correct code should document.getelementbyid('p').style.textshadow = "5px 5px 5px red"
Comments
Post a Comment