onmouSEOver="showmenu(menuwenxue)">menu1</td>
<td height="9" width="100" align=center bgcolor="#33FFFF"
onmouSEOver="showmenu(menuxuexi)">menu1</td>
<tr>
</table>
<div id="menuwenxue" style="position:absolute; width:90px; height:115px; z-index:1; left: 45px;
top: 75px; visibility: hidden" onmouSEOut="hidemenu(menuwenxue)">
<table width="100%" height="100%" border="0" cellspacing="0" cellpadding="0"
onmouSEOut="hidemenu(menuwenxue)">
<tr>
<td height="10" class="menufont" onmouSEOver="showmenu(menuwenxue)"> </td>
</tr>
<tr>
<td height="28" align=center class="menufont" bgcolor=#ff00ff
onmouSEOver="showmenu(menuwenxue)"><a href="Javascript:alert("menu1_item1")">menu1_item1</a></td>
</tr>
<tr>
<td height="31" align=center bgcolor=#ff00ff onmouSEOver="showmenu(menuwenxue)"><a
href="Javascript:alert("menu1_item2")">menu1_item2</a></td>
</tr>
<tr>
<td height="30" align=center bgcolor=#ff00ff onmouSEOver="showmenu(menuwenxue)"><a
href="Javascript:alert("menu1_item3")">menu1_item3</a></td>
</tr>
</table>
</div>
<div id="menuxuexi" style="position:absolute; width:90px; height:115px; z-index:1; left: 140px;
top: 75px; visibility: hidden" onmouSEOut="hidemenu(menuxuexi)">
<table width="100%" height="100%" border="0" cellspacing="0" cellpadding="0"
onmouSEOut="hidemenu(menuxuexi)">
<tr>
<td height="10" onmouSEOver="showmenu(menuxuexi)"> </td>
</tr>
<tr>
<td height="27" align=center bgcolor=#ff00ff onmouSEOver="showmenu(menuxuexi)"><a
href="Javascript:alert("menu2_item2")">menu2_item1</a></td>
</tr>
<tr>
<td height="31" align=center bgcolor=#ff00ff onmouSEOver="showmenu(menuxuexi)"><a
href="Javascript:alert("menu2_item2")">menu2_item2</a></td>
</tr>
<tr>
<td height="30" align=center bgcolor=#ff00ff onmouSEOver="showmenu(menuxuexi)"><a
href="Javascript:alert("menu2_item3")">menu2_item3</a></td>
</tr>
</table>
</div>
<Script language="JavaScript">
<!--
var menushow;
function showmenu(menu){
if(menushow)
menushow.style.visibility="hidden"
menushow=menu
menu.style.visibility="visible"
}
function hidemenu(menu){
menu.style.visibility="hidden"
}
function hideshow()
{
if(menushow)
menushow.style.visibility="hidden"
}
-->
</script>
</body>
上面是我從調試代碼上截下來的,要想得到好看的結果需要改變一下位子關系的,當然還要注意一下鼠標移動時候是否菜單會出現異常現象的,當然這些都可以通過加一些代碼來解決的,主要是鼠標移出菜單外,菜單不會消失的,可以在其它的對象截取onmouSEOver事件來隱藏菜單的!