southbeach
Programmer
I cannot see what I am doing wrong here ... Can you spot it?
The CSS looks like this
I am trying to change background color on a row as mouse hovers over it and change it back to its default when mouse moves out ...
Thank you all for your assistance!
--
SouthBeach
The good thing about not knowing is the opportunity to learn - Yours truly, 2008.
Code:
<tr class="datarow" onmouseover="this.style.className='datarowhover';" onmouseout="this.style.className='datarow';" style="background-color: #FFF" id="row1">
<td>John</td>
<td>Doe</td>
<td>(000) 111-2222</td>
</tr>
The CSS looks like this
Code:
.datarowhover
{
color: #CCFFCC;
background: <?php echo ALTROWHOVER; ?>;
cursor: pointer;
}
.datarow
{
color: #000;
background: <?php echo ALTROWHOVER; ?>;
cursor: default;
}
I am trying to change background color on a row as mouse hovers over it and change it back to its default when mouse moves out ...
Thank you all for your assistance!
--
SouthBeach
The good thing about not knowing is the opportunity to learn - Yours truly, 2008.