hi,
I'm trying to take the value of JavaScript variable and put it in the css as in Figure.
I have tried this way but did not succeed..
HTML Code:
document.write("<style>#slider ul, #slider li{margin:0; padding:0; list-style:none; height:400px; width:"+res+"; background-color:#999}</style>");
Please help.
Thanks
|