fix for opera (class property is uppercase), thanks to nabble-egp-AT-a80.net

This commit is contained in:
Ralf Becker 2007-06-15 17:34:48 +00:00
parent de282bc4d5
commit 7d0276b11d

View File

@ -206,7 +206,7 @@ function set_style_by_class(t,c,p,v)
for(var i = 0; i < elements.length; i++){
var node = elements.item(i);
for(var j = 0; j < node.attributes.length; j++) {
if(node.attributes.item(j).nodeName == 'class') {
if(node.attributes.item(j).nodeName.toLowerCase() == 'class') {
if(node.attributes.item(j).nodeValue == c) {
eval('node.style.' + p + " = '" +v + "'");
}