<script type="text/javascript" language="JavaScript1.2">
<!--
beginSTM("uueoehr","static","0","0","none","false","true","310","0","0","0","","images/blank_m.gif");
appendSTMI("true","系统管理","left","middle","images/tabs3.gif","images/tabs3_o.gif","89","14","0","normal","#0066cc","#0066cc","","1","-1","-1","images/blank_m.gif","images/blank_m.gif","0","0","0","系统管理","","fram_work","Tahoma,Arial","8pt","#ffffff","normal","normal","none","Tahoma,Arial","8pt","#ffcc66","normal","normal","none","0","none","#0066cc","#0066cc","#000000","#000000","#0066cc","#0066cc","#000000","#000000","","","","tiled","tiled");
beginSTMB("auto","0","0","vertically","arrow_r.gif","0","0","2","3","#0066cc","","tiled","#aca899","1","solid","0","Fade","20","6","0","0","0","0","0","3","#999999","false","#aca899","#aca899","#aca899","complex");
appendSTMI("false","部门管理","left","middle","","","-1","-1","0","normal","#0066cc","#ffcc66","","1","-1","-1","images/blank_m.gif","images/blank_m.gif","6","-1","0","部门管理","sysmgt/department/DepartmentMain.jsp","fram_work","Tahoma,Arial","8pt","#ffffff","normal","normal","none","Tahoma,Arial","8pt","#0066cc","normal","normal","none","0","none","#0066cc","#0066cc","#000000","#000000","#0066cc","#0066cc","#000000","#000000","","","","tiled","tiled");
appendSTMI("false","员工管理","left","middle","","","-1","-1","0","normal","#0066cc","#ffcc66","","1","-1","-1","images/blank_m.gif","images/blank_m.gif","6","-1","0","用户管理","sysmgt/user/UserMain.jsp","fram_work","Tahoma,Arial","8pt","#ffffff","normal","normal","none","Tahoma,Arial","8pt","#0066cc","normal","normal","none","0","none","#0066cc","#0066cc","#000000","#000000","#0066cc","#0066cc","#000000","#000000","","","","tiled","tiled");
appendSTMI("false","页面管理","left","middle","","","-1","-1","0","normal","#0066cc","#ffcc66","","1","-1","-1","images/blank_m.gif","images/blank_m.gif","6","-1","0","页面管理","sysmgt/deptapp/DeptAppMain.jsp","fram_work","Tahoma,Arial","8pt","#ffffff","normal","normal","none","Tahoma,Arial","8pt","#0066cc","normal","normal","none","0","none","#0066cc","#0066cc","#000000","#000000","#0066cc","#0066cc","#000000","#000000","","","","tiled","tiled");
appendSTMI("false","角色管理","left","middle","","","-1","-1","0","normal","#0066cc","#ffcc66","","1","-1","-1","images/blank_m.gif","images/blank_m.gif","6","-1","0","角色管理","sysmgt/role/RoleMain.jsp","fram_work","Tahoma,Arial","8pt","#ffffff","normal","normal","none","Tahoma,Arial","8pt","#0066cc","normal","normal","none","0","none","#0066cc","#0066cc","#000000","#000000","#0066cc","#0066cc","#000000","#000000","","","","tiled","tiled");
endSTMB();
appendSTMI("true","帮助","left","middle","images/tabs4.gif","images/tabs4_o.gif","72","14","0","normal","#0066cc","#0066cc","","1","-1","-1","images/blank_m.gif","images/blank_m.gif","0","0","0","帮助","","fram_work","Tahoma,Arial","8pt","#ffffff","normal","normal","none","Tahoma,Arial","8pt","#ffcc66","normal","normal","none","0","none","#0066cc","#0066cc","#000000","#000000","#0066cc","#0066cc","#000000","#000000","","","","tiled","tiled");
beginSTMB("auto","0","0","vertically","trir.gif","0","0","2","3","#0066cc","","tiled","#aca899","1","solid","0","Fade","20","6","0","0","0","0","0","3","#999999","false","#aca899","#aca899","#aca899","complex");
appendSTMI("false","在线帮助","left","middle","","","-1","-1","0","normal","#0066cc","#ffcc66","","1","-1","-1","images/blank_m.gif","images/blank_m.gif","6","-1","0","在线帮助","login.html","fram_work","Tahoma,Arial","8pt","#ffffff","normal","normal","none","Tahoma,Arial","8pt","#0066cc","normal","normal","none","0","none","#0066cc","#0066cc","#000000","#000000","#0066cc","#0066cc","#000000","#000000","","","","tiled","tiled");
appendSTMI("false","Menu&nbsp;Item&nbsp;1","left","middle","","","-1","-1","0","sepline","#aca899","#c0c0c0","images/blank_m.gif","1","-1","-1","","","-1","-1","0","","","fram_work","Arial","9pt","#0000ff","normal","normal","none","Arial","9pt","#000099","normal","normal","none","1","solid","#c0c0c0","#c0c0c0","#ffffff","#000000","#c0c0c0","#c0c0c0","#000000","#ffffff","","","","tiled","tiled");
appendSTMI("false","关于...","left","middle","","","-1","-1","0","normal","#0066cc","#ffcc66","","1","-1","-1","images/blank_m.gif","images/blank_m.gif","6","-1","0","关于...","about.htm","fram_work","Tahoma,Arial","8pt","#ffffff","normal","normal","none","Tahoma,Arial","8pt","#0066cc","normal","normal","none","0","none","#0066cc","#0066cc","#000000","#000000","#0066cc","#0066cc","#000000","#000000","","","","tiled","tiled");
endSTMB();
endSTMB();
endSTM();
//-->
</script>

解决方案 »

  1.   


    看看这段怎么样简单吧!但只用于IE要适合那就自已稍改一下了!<div id='a1'></div>
    <script language="javascript">
    var tmp=null;tmp=a1;function show_menu(obj){  if ( tmp!=obj )
         tmp.style.display="none";  if(obj.style.display!="block")
        {
          obj.style.display="block";
          tmp=obj;
          }  
      else      obj.style.display="none";  }
    </script>
    <a href="#" onclick="show_menu(sub1);">主菜单一</a><br>
    <div id='sub1' style="display:none">
    &nbsp;&nbsp;&nbsp;&nbsp;子菜单一<br>
    &nbsp;&nbsp;&nbsp;&nbsp;子菜单二<br>
    &nbsp;&nbsp;&nbsp;&nbsp;子菜单三<br>
    </div><br>
    <a href="#" onclick="show_menu(sub2);">主菜单二</a><br>
    <div id='sub2' style="display:none">
    &nbsp;&nbsp;&nbsp;&nbsp;子菜单一<br>
    &nbsp;&nbsp;&nbsp;&nbsp;子菜单二<br>
    &nbsp;&nbsp;&nbsp;&nbsp;子菜单三<br>
    </div><br>
    <a href="#" onclick="show_menu(sub3);">主菜单三</a><br>
    <div id='sub3' style="display:none">
    &nbsp;&nbsp;&nbsp;&nbsp;子菜单一<br>
    &nbsp;&nbsp;&nbsp;&nbsp;子菜单二<br>
    &nbsp;&nbsp;&nbsp;&nbsp;子菜单三<br>
    </div><br>
      

  2.   

    我又简单的方法
    格我发个email
    我发一个给你
    绝对简单
      

  3.   

    我也要,给我也发给好吗?
    [email protected]
      

  4.   

    OpenSource一下啊,还有我呢:[email protected]
      

  5.   

    我有一个做菜单的JS ,使用例子:
    var popup=new Popup();var itmTlb=popup.addItem(new PopupItem(null,"工具栏(&T)"));
    var btn=itmTlb.addItem(new PopupItem(null,"标准按钮(&S)","",1));
    itmTlb.addItem(new PopupItem(null,"地址栏(&A)","",1));
    itmTlb.addItem(new PopupItem(null,"链接(&L)"));
    itmTlb.addItem(new PopupItem(null,"-"));
    itmTlb.addItem(new PopupItem(null,"锁定工具栏(&B)"));
    itmTlb.addItem(new PopupItem(null,"自定义..."));
    popup.addItem(new PopupItem(null,"状态栏(&B)"));
    var itmNav=popup.addItem(new PopupItem(null,"浏览器栏(&E)"));
    itmNav.addItem(new PopupItem(null,"搜索(&S)"));
    itmNav.addItem(new PopupItem(null,"收藏夹(&F)"));
    itmNav.addItem(new PopupItem(null,"媒体(&M)"));
    itmNav.addItem(new PopupItem(null,"历史记录(&H)"));
    itmNav.addItem(new PopupItem(null,"文件夹(&O)"));
    itmNav.addSeparator();
    itmNav.addItem(new PopupItem(null,"每日提示(&T)"));
    itmNav.addItem(new PopupItem(null,"讨论(&D)"));

    popup.addItem(new PopupItem(null,"-"));
    var itmGoto=popup.addItem(new PopupItem(null,"转到(&O)"));
    itmGoto.addItem(new PopupItem("images/back.gif","后退     Alt + ←"));
    itmGoto.addItem(new PopupItem("images/next.gif","前进     Alt + →"));
    itmGoto.addItem(new PopupItem(null,"-"));
    itmGoto.addItem(new PopupItem(null,"主页"));
    popup.addItem(new PopupItem("images/stop.gif","停止(&P)"));
    popup.addItem(new PopupItem("images/refresh.gif","刷新(&R)","window.location.reload()"));
    popup.addSeparator();
    var itmFnSz=popup.addItem(new PopupItem(null,"文字大小(&X)"));
    itmFnSz.addItem(new PopupItem(null,"最大(&G)"));
    itmFnSz.addItem(new PopupItem(null,"较大(&L)"));
    itmFnSz.addItem(new PopupItem(null,"中(&M)"));
    itmFnSz.addItem(new PopupItem(null,"较小(&S)"));
    itmFnSz.addItem(new PopupItem(null,"最小(&A)"));

    var itmCharset=popup.addItem(new PopupItem(null,"编码(&D)"));
    itmCharset.addItem(new PopupItem(null,"自动选择"));
    itmCharset.addSeparator();
    itmCharset.addItem(new PopupItem(null,"简体中文(GB2312)","",2));
    itmCharset.addItem(new PopupItem(null,"西欧(ISO)","",2));
    itmCharset.addItem(new PopupItem(null,"西欧(Windows)","",2));
    itmCharset.addItem(new PopupItem(null,"Unicode(UTF-8)","",2));
    var itmOtherCharset=itmCharset.addItem(new PopupItem(null,"其它(&M)"));
    itmOtherCharset.addItem(new PopupItem(null,"阿拉伯文(ASMO 708)"));
    itmOtherCharset.addItem(new PopupItem(null,"阿拉伯文(DOS)"));
    itmOtherCharset.addItem(new PopupItem(null,"阿拉伯文(ISO)"));
    itmOtherCharset.addItem(new PopupItem(null,"阿拉伯文(Windows)"));
    itmOtherCharset.addSeparator();
    itmOtherCharset.addItem(new PopupItem(null,"波罗的海文(ISO)"));
    itmOtherCharset.addItem(new PopupItem(null,"波罗的海文(Windows)"));
    itmOtherCharset.addSeparator();
    itmOtherCharset.addItem(new PopupItem(null,"中欧(DOS)"));
    itmOtherCharset.addItem(new PopupItem(null,"中欧(ISO)"));
    itmOtherCharset.addItem(new PopupItem(null,"中欧(Windows)"));
    itmOtherCharset.addSeparator();
    itmOtherCharset.addItem(new PopupItem(null,"简体中文(HZ)"));
    itmOtherCharset.addSeparator();
    itmOtherCharset.addItem(new PopupItem(null,"繁体中文(Big5)"));
    itmOtherCharset.addSeparator();
    itmOtherCharset.addItem(new PopupItem(null,"西里而文(DOS)"));
    itmOtherCharset.addItem(new PopupItem(null,"西里而文(ISO)"));
    itmOtherCharset.addItem(new PopupItem(null,"西里而文(KOI8-R)"));
    itmOtherCharset.addItem(new PopupItem(null,"西里而文(KOI8-U)"));
    itmOtherCharset.addItem(new PopupItem(null,"西里而文(Windows)"));
    itmOtherCharset.addSeparator();
    itmOtherCharset.addItem(new PopupItem(null,"希腊文(ISO)"));
    itmOtherCharset.addItem(new PopupItem(null,"希腊文(Windows)"));
    itmOtherCharset.addSeparator();
    itmOtherCharset.addItem(new PopupItem(null,"希伯来文(DOS)"));
    itmOtherCharset.addItem(new PopupItem(null,"希伯来文(ISO-逻辑)"));
    itmOtherCharset.addItem(new PopupItem(null,"希伯来文(ISO-Visual)"));
    itmOtherCharset.addItem(new PopupItem(null,"希伯来文(Windows)"));
    itmOtherCharset.addSeparator();
    itmOtherCharset.addItem(new PopupItem(null,"日文"));
    itmOtherCharset.addSeparator();
    itmOtherCharset.addItem(new PopupItem(null,"韩文"));
    itmOtherCharset.addSeparator();
    itmOtherCharset.addItem(new PopupItem(null,"泰文(Windows)"));
    itmOtherCharset.addSeparator();
    itmOtherCharset.addItem(new PopupItem(null,"土耳其文(ISO)"));
    itmOtherCharset.addItem(new PopupItem(null,"土耳其文(Windows)"));
    itmOtherCharset.addSeparator();
    itmOtherCharset.addItem(new PopupItem(null,"用户自定义的"));
    itmOtherCharset.addSeparator();
    itmOtherCharset.addItem(new PopupItem(null,"越南文(Windows)"));
    itmOtherCharset.addSeparator();
    itmOtherCharset.addItem(new PopupItem(null,"西欧(ISO)"));

    popup.addSeparator();
    popup.addItem(new PopupItem(null,"源文件(&C)"));
    popup.addItem(new PopupItem(null,"隐私报告(&V)"));
    popup.addItem(new PopupItem("images/fullscreen.gif","全屏显示(&F)"));
    popup.addItem(new PopupItem(null,"Java控制台(&F)"));popup.Init();
    支持菜单超出屏幕时自动滚动,XP风格,如果要,与我联系!
      

  6.   

    楼上,发一个给我,谢谢。[email protected]