I am writing a website with a drop-down menu and I have the drop-down as a table within a cell of another larger table. I have tried putting the onmouseout event handler in the table tag as well as the cell tag, but any way I try the event executes whenever the mouse is between cells. So before I reach the second option on the menu it disappears.
Does anybody know of any way to fix this so I can keep the nested table and the desired effect. I wanted the table so I could change the colour of each cell the mouse was over.
I think this explanation was a bit long winded, but here’s the code I’m currently using. Any suggestions?
[code=html]
<table id=”menu” class=”menu” style=”position:absolute;z-index:2;left:140;top:100;” width=450 cellpadding=0 cellspacing=0 border=0>
<tr>
<td id=”menu0″ width=150 onMouseOver=”menuchange(0)”>
<b><font face=”Century Gothic”>MRC Math</font></b>
</td>
<td id=”menu1″ width=150 onMouseOver=”menuchange(1);”>
<b><font face=”Century Gothic”>Sports</font></b>
</td>
<td id=”menu2″ width=150 onMouseOver=”menuchange(2);”>
<b><font face=”Century Gothic”>Other</font></b>
</td>
</tr>
<tr>
<td id=”0″ style=”visibility:hidden”>
</td>
<td id=”1″ style=”visibility:hidden” onMouseOut=”menuout(1)” bgcolor=”orange”>
<table width=100% style=”border-width:1;border-color:’black’;border-style:solid;”><tr><td><font size=3 face=”Century Gothic”>Sports Focus</td></tr><tr><td>
KSAFA</td></tr><tr><td>
JFF</font></td></tr></table>
</td>
<td id=”2″ style=”visibility:hidden”>
</td>
</table>
Thanks much