A
Alex
Trying to change a few tags by swapping color values to my own. It
doesn't give any error, yet it doesn't perform. Is there an error in my
logic somewhere?
var my_i = document.getElementsByTagName( 'td' );
for (i = 0; i < my_i.length; i++)
{
if ((my_i.hasAttribute( 'BGCOLOR' )) && (my_i.getAttributeNode(
'BGCOLOR' ).value == '#F7FFFB' ))
my_i.setAttribute( 'BGCOLOR', '#00FF00' );
}
doesn't give any error, yet it doesn't perform. Is there an error in my
logic somewhere?
var my_i = document.getElementsByTagName( 'td' );
for (i = 0; i < my_i.length; i++)
{
if ((my_i.hasAttribute( 'BGCOLOR' )) && (my_i.getAttributeNode(
'BGCOLOR' ).value == '#F7FFFB' ))
my_i.setAttribute( 'BGCOLOR', '#00FF00' );
}