1. In IE and Opera (partially I believe), you can use dynamic properties - not supported in Moz. browsers
2. DOM access to style sheets. Unfortunately you can only access the index of the rule and not the class selector name.
3. Find the relevant elements by searching the DOM tree:
Code:
var aIMG=document.getElementsByTagName('img');
for(var i=0; i<aIMG; i++) {
if(aIMG[i].className=='size0') {
aIMG[i].style.width=aValue+'px';
}
}
At least 98% of internet users' DNA is identical to that of chimpanzees
Bookmarks