日期:2014-05-17  浏览次数:20722 次

联级菜单问题

<HEAD>
  <TITLE> New Document </TITLE>
  <META NAME="Generator" CONTENT="EditPlus">
  <META NAME="Author" CONTENT="">
  <META NAME="Keywords" CONTENT="">
  <META NAME="Description" CONTENT="">
<style>
a {
       font-family:Arial, Helvetica, sans-serif;
       font-size:10px;
       color:#666;
       text-decoration:none;
}
a:hover {
       color:#F90;
       text-decoration:underline;
}
a:vistied {
       color:#666;
       text-decoration:none;
}
#tree li {
       color:#666;
       font-size:10px;
       font-family:Arial, Helvetica, sans-serif;
       line-height:180%;
       list-style:none;
}
#tree ul {
       margin-left:16px;
       padding-left:0px;
       display:none;
}
</style>
<script type="text/javascript">
       var lastSubMenuID;
       //记录最后点击的子菜单
       function doRecord(subMenuID) {
              document.getElementById(subMenuID).style.display = "none";
              lastSubMenuID = subMenuID;
       }
       
       //隐藏子菜单
       function hideLastSubMenu() {
              if(lastSubMenuID == undefined || lastSubMenuID == "") {
                     return;
              } else {
                     var lastSubMenu = document.getElementById(lastSubMenuID);