js 代码
  1. //******************************************   
  2.   
  3. //【转载】:http://blog.csdn.net/kanjing/archive/2004/08/06/67561.aspx   
  4.   
  5. //******************************************   
  6.   
  7. 做网页时,为了节约空间和美观,时常会用到多级的菜单,这里是一个JavaScript和Html混编的一个多级树型菜单的全部代码   
  8.   
  9. <%@ page contentType="text/html; charset=gb2312" language="java" import="java.sql.*" errorPage="error.jsp" %>    
  10. <html>    
  11. <head>    
  12. <title>多级树型菜单</title>    
  13. <meta http-equiv="Content-Type" content="text/html; charset=gb2312" />    
  14. <script language="JavaScript1.2">    
  15. var head="photos/display:''"    
  16. img1=new Image()    
  17. img1.src="photos/fold.gif"    
  18. img2=new Image()    
  19. img2.src="photos/open.gif"    
  20. function change(){    
  21.   if(!document.all)    
  22.      return    
  23.   if (event.srcElement.id=="foldheader") {    
  24.      var srcIndex = event.srcElement.sourceIndex    
  25.      var nested = document.all[srcIndex+1]    
  26.      if (nested.style.display=="none") {    
  27.         nested.style.display=''    
  28.         event.srcElement.style.liststyleImage="url(photos/open.gif)"    
  29.      }    
  30.      else {    
  31.         nested.style.display="none"    
  32.         event.srcElement.style.liststyleImage="url(photos/fold.gif)"    
  33.      }    
  34.   }    
  35. }    
  36. document.onclick=change    
  37. //-->    
  38. </script>    
  39. <script language="JavaScript" type="text/javascript">    
  40. <!--    
  41.    var popup = null;    
  42.    function inputorderid() {      
  43.        popup = window.open('jspInputOrderid.jsp', '请输入订单编号','width=200,height=150,resizable=0,scrollbars=no');    
  44.    }    
  45.    function account() {     
  46.        popup = window.open('jspAccountReceivable.jsp', '请选择客户名称','width=200,height=200,resizable=0,scrollbars=no');    
  47.    }    
  48. function oppaccount(){    
  49. popup = window.open('jspOppAccount.jsp', '请选择机会类型','width=200,height=200,resizable=0,scrollbars=no');    
  50. }    
  51. function accountcust(){     
  52. popup = window.open('jspAccountCust.jsp', '请选择客户地域','width=262,height=150,resizable=0,scrollbars=no');    
  53. }    
  54. function OrderAccount(){    
  55. popup = window.open('jspAccountOrder.jsp', '请选择客户及订单有效日期范围','width=200,height=200,resizable=0,scrollbars=no');    
  56.   
  57. }    
  58. //-->    
  59. </script>    
  60. <style type="text/css">    
  61.   
  62. li {    
  63. font-family: "宋体""新宋体";    
  64. font-size: 9pt;    
  65. line-height: 13pt;    
  66. margin-right: 5px;    
  67. cursor: hand;    
  68.  
  69. #foldheader{    
  70. cursor:hand;    
  71. list-style-image:url(photos/fold.gif);    
  72. font-family: "宋体""新宋体";    
  73. font-size: 10pt;    
  74.  
  75. #foldinglist{    
  76. list-style-image:url(photos/list.gif);    
  77. font-family: "宋体""新宋体";    
  78. font-size: 9pt;    
  79. }    
  80. BODY {    
  81. SCROLLBAR-FACE-COLOR: #6699CC;    
  82. SCROLLBAR-HIGHLIGHT-COLOR: #A6C4E1;    
  83. SCROLLBAR-SHADOW-COLOR: #A6C4E1;    
  84. SCROLLBAR-3DLIGHT-COLOR: #A6C4E1;    
  85. SCROLLBAR-ARROW-COLOR:  #A6C4E1;    
  86. SCROLLBAR-TRACK-COLOR: #A6C4E1;    
  87. SCROLLBAR-DARKSHADOW-COLOR: #A6C4E1;    
  88. }    
  89.   
  90. A        { text-decoration:none; }    
  91. A:link       { text-decoration:none;  color: #000066;  }    
  92. A:visited    { text-decoration:none;  color: #000033;  }    
  93. A:hover      {    
  94. text-decoration:underline;    
  95. color: #FF0000;    
  96. }    
  97. </style>    
  98. </head>    
  99. <body bgcolor="#CBDCED" leftmargin="3" topmargin="0">    
  100. <table width="100%" height="33" border="0" cellpadding="0" cellspacing="0">    
  101.  <tr>    
  102.    <td></td>    
  103.  </tr>    
  104. </table>    
  105. <table width="100%" cellpadding="0" cellspacing="0" frame="void" align="left">    
  106.  <tr>    
  107.    <td>    
  108. <fieldset style="width:100%" align="left">    
  109.      <legend><a href="" target="_blank"><font size="2"> JETCRM B/S2003 </font></a></legend>    
  110.      <dl class="pt12normal">    
  111.  <li id="foldheader"> 客户管理</li>    
  112.  <ul id="foldinglist">    
  113.    <li id="foldheader"> 客户管理</li>    
  114.    <dl id="foldinglist" style="display:none">    
  115.      <li><a href="customer_add.jsp" target="mainFrame"> 新建客户</a></li>    
  116.      <li><a href="customer_query.jsp" target="mainFrame"> 客户查询</a></li>    
  117.    <li><a href="menu.jsp#" onClick="accountcust()"> 客户统计</a></li>    
  118.    </dl>    
  119.    <li id="foldheader"> 联系人管理</li>    
  120.    <dl id="foldinglist" style="display:none">    
  121.      <li><a href="contact_add.jsp" target="mainFrame" class=black> 新建联系人</a></li>    
  122.      <li><a href="contact_query.jsp" target="mainFrame" class=black> 联系人查询</a></li>    
  123.    </dl>    
  124.    <li id="foldheader"> 竞争对手管理</li>    
  125.    <dl id="foldinglist" style="display:none">    
  126.      <li><a href="adversary_add.jsp" target="mainFrame" class=black> 新建竞争对手</a></li>    
  127.      <li><a href="adversary_query.jsp" target="mainFrame" class=black> 竞争对手查询</a></li>    
  128.    </dl>    
  129.  </ul>    
  130.  <li id="foldheader">服务管理</li>    
  131.  <ul id="foldinglist" style="display:none">    
  132.  <li id="foldheader">联系历史</li>    
  133.  <dl id="foldinglist" style="display:none">    
  134.  <li><a href="ContactHistory_add.jsp" target="mainFrame" class=black>新建联系记录</a></li>    
  135.      <li><a href="ContactHistory_list.jsp" target="mainFrame" class="balck">浏览联系记录</a></li>    
  136.    </dl>    
  137.    <li> 邮件发送</li>    
  138.    <li id="foldheader">服务请求记录</li>    
  139.    <dl id="foldinglist" style="display:none">    
  140.            <li><a href="jsprequester_add.jsp" target="mainFrame" class=black>新建服务请求</a></li>    
  141.            <li><a href="showRequesterlist.jsp" target="mainFrame" class="balck">服务请求浏览</a></li>    
  142.    </dl>    
  143.    <li id="foldheader">客户投诉</li>    
  144.    <dl id="foldinglist" style="display:none">    
  145.      <li><a href="jspFeedback_add.jsp" target="mainFrame">新建投诉记录</a></li>    
  146.      <li><a href="feedback_list.jsp" target="mainFrame">投诉查询</a></li>    
  147.      <li>投诉统计</li>    
  148.    </dl>    
  149.  </ul>    
  150.  <li id="foldheader">销售管理</li>    
  151.  <ul id="foldinglist">    
  152.    <li id="foldheader"> 机会管理</li>    
  153.    <dl id="foldinglist" style="display:none">    
  154.      <li><a href="jspOppMan.jsp" target="mainFrame">新建机会</a></li>    
  155.      <li><a href="jspOppQuery.jsp" target="mainFrame">机会查询</a></li>    
  156.      <li><a href="menu.jsp#" onClick="oppaccount()">机会统计</a></li>    
  157.    </dl>    
  158.    <li id="foldheader">定单管理</li>    
  159.    <dl id="foldinglist" style="display:none">    
  160.      <li><a href="jspNewOrder.jsp" target="mainFrame">新建定单</a></li>    
  161.      <li><a href="jspOrderQry.jsp" target="mainFrame">定单查询</a></li>    
  162.      <li><a href="jspFufilOrder.jsp" target="mainFrame">订单履行</a></li>    
  163.      <li><a href="jspFufilOrder.jsp" target="mainFrame">订单履行</a></li>    
  164.       <li><a href="menu.jsp#" onClick="OrderAccount">订单额统计</a></li>    
  165.      <li><a href="menu.jsp#" onClick=" inputorderid()">履行或结案</a></li>    
  166.      <li><a href="menu.jsp#" onClick=" account()">应收款统计</a></li>    
  167.    </dl>    
  168.    <li id="foldheader">报价管理</li>    
  169.    <dl id="foldinglist" style="display:none">    
  170.      <li><a href="jspQuote_add.jsp" target="mainFrame">新建报价单</a></li>    
  171.      <li><a href="jspQuote_list.jsp" target="mainFrame">浏览报价单</a></li>    
  172.    </dl>    
  173.  </ul>    
  174.  <li id="foldheader">系统管理</li>    
  175.  <ul id="foldinglist">    
  176.    <li>权限管理</li>    
  177.      <li><a href="jspBaseDataInsert.jsp" target="mainFrame">基础数据设置</a></li>    
  178.  <li><a href="jspSetEmployee.jsp" target="mainFrame">员工管理</a></li>    
  179.  <li><a href="jsppurview_set.jsp" target="mainFrame">权限设置</a></li>    
  180.  </ul>    
  181.        <li id="foldheader"><a href="#" target="mainFrame">重新登录</a></li>    
  182. </dl>    
  183. </fieldset>    
  184.  </td>    
  185.  </tr>    
  186.  <tr>    
  187.    <td> </td>    
  188.  </tr>    
  189. </table>    
  190. </body>    
  191. </html>  
评论
发表评论

您还没有登录,请登录后发表评论

zhuixinjian
  • 浏览: 29078 次
  • 性别: Icon_minigender_1
  • 来自: 湖北人在北京
  • 详细资料
搜索本博客
我的相册
存档
最新评论
评论排行榜