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

Popular posts from this blog

c++ - Difference between pre and post decrement in recursive function argument -

php - Nothing but 'run(); ' when browsing to my local project, how do I fix this? -

php - How can I echo out this array? -