您目前尚未登陆,请选择【登陆】或【注册
首页->全站代码->达达ASP.NET企业信息管理系统>>Admin/Js/rsmenu.js>>代码在线查看
温馨提示:代码在线浏览功能只能做为源码浏览参考,不能展示项目的全部,如果想更进一步了解该代码请下载:达达ASP.NET企业信息管理系统


当前文件路径:DaDaEnterprise/Admin/Js/rsmenu.js 文件类型
普通视图
		            
1isExpanded = false; 2 3function getIndex(el) { 4 ind = null; 5 for (i=0; i<document.layers.length; i++) { 6 whichEl = document.layers[i]; 7 if (whichEl.id == el) { 8 ind = i; 9 break; 10 } 11 } 12 return ind; 13} 14 15function arrange() { 16 nextY = document.layers[firstInd].pageY + document.layers[firstInd].document.height; 17 for (i=firstInd+1; i<document.layers.length; i++) { 18 whichEl = document.layers[i]; 19 if (whichEl.visibility != "hide") { 20 whichEl.pageY = nextY; 21 nextY += whichEl.document.height; 22 } 23 } 24} 25 26function initIt(){ 27 if (NS4) { 28 for (i=0; i<document.layers.length; i++) { 29 whichEl = document.layers[i]; 30 if (whichEl.id.indexOf("Child") != -1) whichEl.visibility = "hide"; 31 } 32 arrange(); 33 } 34 else { 35 tempColl = document.all.tags("DIV"); 36 for (i=0; i<tempColl.length; i++) { 37 if (tempColl(i).className == "child") tempColl(i).style.display = "none"; 38 } 39 } 40} 41 42function expandIt(el) { 43 if (!ver4) return; 44 if (IE4) {expandIE(el)} else {expandNS(el)} 45} 46 47function expandIE(el) { 48 whichEl = eval(el + "Child"); 49 whichIm = event.srcElement; 50 51 if (whichEl.style.display == "none") { 52 whichEl.style.display = "block"; 53 whichIm.src = "bullet-minus.gif"; 54 } 55 else { 56 whichEl.style.display = "none"; 57 whichIm.src = "bullet-plus.gif"; 58 } 59} 60 61function expandNS(el) { 62 whichEl = eval("document." + el + "Child"); 63 whichIm = eval("document." + el + "Parent.document.images['imEx']"); 64 if (whichEl.visibility == "hide") { 65 whichEl.visibility = "show"; 66 whichIm.src = "bullet-minus.gif"; 67 } 68 else { 69 whichEl.visibility = "hide"; 70 whichIm.src = "bullet-plus.gif"; 71 } 72 arrange(); 73} 74 75function showAll() { 76 for (i=firstInd; i<document.layers.length; i++) { 77 whichEl = document.layers[i]; 78 whichEl.visibility = "show"; 79 } 80} 81 82function expandAll(isBot) { 83 newSrc = (isExpanded) ? "bullet-plus.gif" : "bullet-minus.gif"; 84 85 if (NS4) { 86 document.images["imEx"].src = newSrc; 87 for (i=firstInd; i<document.layers.length; i++) { 88 whichEl = document.layers[i]; 89 if (whichEl.id.indexOf("Parent") != -1) { 90 whichEl.document.images["imEx"].src = newSrc; 91 } 92 if (whichEl.id.indexOf("Child") != -1) { 93 whichEl.visibility = (isExpanded) ? "hide" : "show"; 94 } 95 } 96 97 arrange(); 98 if (isBot && isExpanded) scrollTo(0,document.layers[firstInd].pageY); 99 } 100 else { 101 divColl = document.all.tags("DIV"); 102 for (i=0; i<divColl.length; i++) { 103 if (divColl(i).className == "child") { 104 divColl(i).style.display = (isExpanded) ? "none" : "block"; 105 } 106 } 107 imColl = document.images.item("imEx"); 108 for (i=0; i<imColl.length; i++) { 109 imColl(i).src = newSrc; 110 } 111 } 112 113 isExpanded = !isExpanded; 114} 115 116with (document) { 117 write("<STYLE TYPE='text/css'>"); 118 if (NS4) { 119 write(".parent {position:absolute; visibility:hidden}"); 120 write(".child {position:absolute; visibility:hidden}"); 121 write(".regular {position:absolute; visibility:hidden}") 122 } 123 else { 124 write(".child {display:none}") 125 } 126 write("</STYLE>"); 127} 128 129onload = initIt; 130 131
还没有找到您心仪的内容?请用.net源码大搜捕
代码片断 打包下载该项目完整源码:达达ASP.NET企业信息管理系统

- 三层入门之留言板

- 多层文章管理系统源码

- 网上教学系统全站程序源码

- 某物流网站源码

- 小孔子内容管理系统V2.1源码

- Mibo生产控制管理系统.NETV1.2

- 某驾校系统全站源码

- MagicAjax入门程序之无刷新显..

51Aspx.com 版权所有 CopyRight © 2000-2008. 京ICP备06046876号