QQ式的菜單
来源:互联网 发布:cn域名隐私保护 编辑:程序博客网 时间:2024/04/30 11:13
<html><head> <link href="../css/Font.css" rel="stylesheet" type="text/css" /><script language="JavaScript">var titleHeight = 22; //標題的高度var bodyHeight = 160; //菜單內容項的高度var groupcount =8; //組的個數var step = 3; //移動速度//顯示菜單的內容function showDiv(obj1, obj2){ //以下循環為改變標題的背景顏色 for(i=0;i<document.all.tags("td").length;i++) { if (document.all.tags("td")[i].className == 'headtd') document.all.tags("td")[i].bgColor = '#cccc66'; } obj2.bgColor = '#cccc66'; moveme(obj1);}//移動菜單的內容function moveme(obj){ idnumber = parseInt(obj.id.substr(4)); objtop = titleHeight * (idnumber - 1); objbuttom = bodyHeight + titleHeight * (idnumber - 7); currenttop = parseInt(obj.style.top); if (currenttop >= objbuttom) { //檢驗出每一個應該向上移動的層 countid = 1; for(i=0;i<document.all.tags("div").length;i++) { if (document.all.tags("div")[i].id == 'item'+countid+'body') { obj = document.all.tags("div")[i]; objtop = titleHeight * (countid - 1); moveup(obj,objtop); if (countid == idnumber) break; countid++; } }}else if ((currenttop <= objtop) && (idnumber < groupcount)){ //檢驗出每一個應該向下移動的層 idnumber++; countid = groupcount; for(i=document.all.tags("div").length-1;i>=0;i--) { if (document.all.tags("div")[i].id == 'item'+countid+'body') { obj = document.all.tags("div")[i]; objbuttom = bodyHeight + titleHeight * (countid - 2); movedown(obj,objbuttom); if (countid == idnumber) break; countid--; } }}}//向上移動的方法function moveup(obj,objtop){ currenttop = parseInt(obj.style.top); if (currenttop > objtop) { obj.style.top = currenttop - step; window.setTimeout('moveup('+obj.id+','+objtop+')',1) }}//向下移動的方法function movedown(obj,objbuttom){ currenttop = parseInt(obj.style.top); if (currenttop < objbuttom) { obj.style.top = currenttop + step; window.setTimeout('movedown('+obj.id+','+objbuttom+')',1) }}</script><style type="text/css"><!--showme.headtd { border: 3px outset; border-color: #00bbFF #0007cc #0007cc #00aacc; cursor: hand; font-size: 12pt}.bodytd { background: gray; border: 2px outset; border-color: #00aaFF #0007cc #0007cc #00aacc; font-size: 12pt}--></style></head>
<body bgcolor="#FFFFFF" text="#000000"><div id="mainboard" style="position:absolute; left:2px; top:2px; width:150px; height:316px; z-index:10; overflow: hidden; background-color: #cccc66;"> <div id="item1body" style="position:absolute; left:0; top:0; width:150px; height:160px; z-index:1; overflow: hidden"> <table width="100%" border="0" height="100%" cellpadding="2" cellspacing="0"> <tr> <td id="item1head" height="20" class="headtd" onclick="showDiv(item1body,this)" bgcolor="#cccc66"> <div align="center">系統管理</div> </td> </tr> <tr> <td class="bodytd"> <div align="center"><a href="../Negative/UserAdd.aspx" class="MenuUnselected" target="mainFrame">申請人添加</a></div> <div align="center"><a href="../Negative/Password.aspx" class="MenuUnselected" target="mainFrame">密碼修改</a></div> <div align="center"><a href="../Negative/LoginOut.aspx" class="MenuUnselected" target="mainFrame">用戶注銷</a></div> </td> </tr> </table> </div> <div id="item2body" style="position:absolute; left:0px; top:160; width:150; height:160; z-index:2; overflow: hidden"> <table width="100%" border="0" height="100%" cellpadding="2" cellspacing="0"> <tr> <td id="item2head" height="20" class="headtd" onclick="showDiv(item2body,this)" bgcolor="#cccc66"> <div align="center">底片作業</div> </td> </tr> <tr> <td class="bodytd"> <div align="center"><a href="../Negative/ApplyInfoAdd.aspx" class="MenuUnselected" target="mainFrame">底片申請</a></div> <div align="center"><a href="../Negative/ApplyInfoEdit.aspx" class="MenuUnselected" target="mainFrame">申請信息確認</a></div> <div align="center"><a href="../Negative/AllApplyInfoEdit.aspx" class="MenuUnselected" target="mainFrame">底片審核</a></div> <div align="center">底片量測發放作業</div> </td> </tr> </table> <p class="headtd"> </p> </div> <div id="item3body" style="position:absolute; left:0; top:182; width:150px; height:160; z-index:3"> <table width="100%" border="0" height="100%" cellpadding="2" cellspacing="0"> <tr> <td id="item3head" height="20" class="headtd" onclick="showDiv(item3body,this)" bgcolor="#cccc66"> <div align="center">底片管理</div> </td> </tr> <tr> <td class="bodytd"><div align="center">底片存檔</div><div align="center">出片記錄</div><div align="center">報廢記錄</div> </td> </tr> </table> </div> <div id="item4body" style="position:absolute; left:0; top:204; width:150px; height:160; z-index:4; overflow: hidden"> <table width="100%" border="0" height="100%" cellpadding="2" cellspacing="0"> <tr> <td id="item4head" height="20" class="headtd" onclick="showDiv(item4body,this)" bgcolor="#cccc66"> <div align="center">回收/作業</div> </td> </tr> <tr> <td class="bodytd"> <div align="center">底片回收</div> <div align="center">底片報廢</div> </td> </tr> </table> </div> <div id="item5body" style="position:absolute; left:0; top:226; width:150px; height:160; z-index:5; overflow: hidden"> <table width="100%" border="0" height="100%" cellpadding="2" cellspacing="0"> <tr> <td id="item5head" height="20" class="headtd" onclick="showDiv(item5body,this)" bgcolor="#cccc66"> <div align="center">回收/作業</div> </td> </tr> <tr> <td class="bodytd"> <div align="center">底片回收</div> <div align="center">底片報廢</div> </td> </tr> </table> </div> <div id="item6body" style="position:absolute; left:0; top:248; width:150px; height:160; z-index:6; overflow: hidden"> <table width="100%" border="0" height="100%" cellpadding="2" cellspacing="0"> <tr> <td id="item6head" height="20" class="headtd" onclick="showDiv(item6body,this)" bgcolor="#cccc66"> <div align="center">回收/作業</div> </td> </tr> <tr> <td class="bodytd"> <div align="center">底片回收</div> <div align="center">底片報廢</div> </td> </tr> </table> </div> <div id="item7body" style="position:absolute; left:0; top:270; width:150px; height:160; z-index:6; overflow: hidden"> <table width="100%" border="0" height="100%" cellpadding="2" cellspacing="0"> <tr> <td id="item7head" height="20" class="headtd" onclick="showDiv(item7body,this)" bgcolor="#cccc66"> <div align="center">回收/作業</div> </td> </tr> <tr> <td class="bodytd"> <div align="center">底片回收</div> <div align="center">底片報廢</div> </td> </tr> </table> </div> <div id="item8body" style="position:absolute; left:0; top:292; width:150px; height:160; z-index:6; overflow: hidden"> <table width="100%" border="0" height="100%" cellpadding="2" cellspacing="0"> <tr> <td id="item8head" height="20" class="headtd" onclick="showDiv(item8body,this)" bgcolor="#cccc66"> <div align="center">回收/作業</div> </td> </tr> <tr> <td class="bodytd"> <div align="center">底片回收</div> <div align="center">底片報廢</div> </td> </tr> </table> </div> </div></body></html>
- QQ式的菜單
- 尊敬的QQ用户
- 和×××的历史qq
- 她的qq留言
- LINUX下的QQ
- QQ的状态
- 我的 QQ 家园
- .net的QQ群
- 有趣的QQ昵称
- QQ的使用技巧
- QQ号码的基本知识
- 有趣的qq资料
- QQ最大的败笔
- 三个QQ的安装
- QQ的部分源代码
- 我的QQ
- BW的QQ群
- QQ的一个BUG
- 和网友讨论的ERP系统数据保密方案
- SaaS专题(六)--ERP世界中的SaaS
- 管理者的自省:用三流人才赚一流的钱
- 你为你的BLOG找了经纪人了吗?
- SaaS专题(五)--网友评论:我一直不看好SaaS
- QQ式的菜單
- SaaS专题(四)--中小企业将对SaaS模式提出更高要求
- 项目管理手记(七)--DRP系统的文化输出与营销
- SaaS专题(三)--SaaS的实施风险
- SaaS专题(二):Salesforce将成为按需世界的微软吗?
- SaaS专题(一)前途未卜:成本问题困扰SaaS前景
- 让绵羊变成狮子---创造学习型营销团队[转]
- 好书共享:《公司理财》
- 项目管理手记(六) DRP项目因为系统性能“四进宫”,何解?