I am trying to create this function but keep getting JS errors. Can someone please point me in the righ tdirection.
Here is the JS functions
And here is my HTML
Here is the JS functions
Code:
<script language="JavaScript">
function rollOver(td1ID,td2ID)
{
document.getElementById('td1ID').style.backgroundColor = '#FFFFFF';
document.getElementById('td2ID').style.backgroundColor = '#B0D0E7';
}
function rollOut(td1ID,td2ID)
{
document.getElementById('td1ID').style.backgroundColor = '#B0D0E7';
document.getElementById('td2ID').style.backgroundColor = '#FFFFFF';
}
</script>
And here is my HTML
Code:
<table border="0" cellspacing="0" cellpadding="0">
<tr onMouseOver="rollOver('menu1a','menu2a');" onMouseOut="rollOut('menu1a','menu2a');">
<td style="width:29px;background-color:#B0D0E7;" id="menu1a"> </td>
<td style="width:200px;background-color:#FFFFFF;" id="menu2a"> </td>
</tr>
</table>