Of course, I could make the code force the background color at the
object level, but I shouldn't have to, and it would mean putting colors
into the server-side code instead of the CSS. Yuck. How do I get IE to
lose the setting on an object and defer to the class?
Here's demonstration code. Try in FireFox and IE.
<HTML>
<HEAD>
<STYLE>
.rowclass {
background-color: #FF0000;
}
</STYLE>
</HEAD>
<BODY BGCOLOR="#00FF00">
<TABLE>
<TR CLASS="rowclass" ID="row"
ONMOUSEOVER="getElementById('row').style.background = '#FFFFFF';"
ONMOUSEOUT="getElementById('row').style.background = '';">
<TD>Some Text</TR>
</TABLE>
</BODY>
</HTML>
Works on My IE 6 and FF.
-Mark