I am trying to alternate the background colour of a cell in a table on
mouseover. The rollover function does switch based on the mi.value, but the
color does not change. Any ideas ?
Many Thanks
--------------------------------
<script language=javascript>
function rollover( mi )
{
if( mi.bgcolor=="Blue" )
{
mi.bgcolor = "White";
textboxy.value="White";
return true;
}
else
{
mi.bgcolor="Blue";
textboxy.="Blue";
return true;
}
}
</script>
</head>
<body>
<table id="menu" border="1" width="100%" id="table1">
<tr>
<td bgcolor="White" id="MI1" onmouseover="rollover(this);"
onmouseout="rollover(this);"> </td>
<td> </td>
<td> </td>
</tr>
<tr>
<td> </td>
<td> </td>
<td> </td>
</tr>
</table>