onMouseOver, onMouseOut, background-color...
Posted on 2003-02-20
I have a following HTML code:
<TR onMouseOver="this.style.background='#C1D1E2'" onMouseOut="this.style.background='#F0F8FF'">
<TD style="background-color:#F0F8FF;"> blah </TD>
When a mouse is over this row, the background color does not change. Is this because I specify the bg color in the <TD> tag? 'Cause when I remove that from <TD>, onMouseOver and onMouseOut work fine. Is there any way that I can accomplish the both, leaving the bg color in <TD> and changing its bg color when the mouse is over that row.