帝国cms二级树形菜单
时间:2024年01月29日
/来源:网络
/编辑:佚名
帝国cms二级树形菜单样例代码
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=gb2312" /> <title>帝国cms二级树形菜单</title> <script language="JavaScript1.2"> scores = new Array(4);var numTotal=0;NS4 = (document.layers) ? 1 : 0;IE4 = (document.all) ? 1 : 0;ver4 = (NS4 || IE4) ? 1 : 0;if (ver4) { with (document) { write("<STYLE TYPE='text/css'>"); if (NS4) { write(".parent {position:absolute; visibility:visible}"); write(".child {position:absolute; visibility:visible}"); write(".regular {position:absolute; visibility:visible}") } else { write(".child {display:none}") } write("</STYLE>"); }}function getIndex(el) { ind = null; for (i=0; i<document.layers.length; i++) { whichEl = document.layers[i]; if (whichEl.id == el) { ind = i; break; } } return ind;}function arrange() { nextY = document.layers[firstInd].pageY +document.layers[firstInd].document.height; for (i=firstInd+1; i<document.layers.length; i++) { whichEl = document.layers[i]; if (whichEl.visibility != "hide") { whichEl.pageY = nextY; nextY += whichEl.document.height; } }}function initIt(){ if (!ver4) return; if (NS4) { for (i=0; i<document.layers.length; i++) { whichEl = document.layers[i]; if (whichEl.id.indexOf("Child") != -1) whichEl.visibility = "hide"; } arrange(); } else { divColl = document.all.tags("DIV"); for (i=0; i<divColl.length; i++) { whichEl = divColl(i); if (whichEl.className == "child") whichEl.style.display = "none"; } }}function expandIt(el) { if (!ver4) return; if (IE4) { whichEl1 = eval(el + "Child"); for(i=1;i<=numTotal;i++){ whichEl = eval(scores[i] + "Child"); if(whichEl!=whichEl1) { whichEl.style.display = "none"; } } whichEl1 = eval(el + "Child"); if (whichEl1.style.display == "none") { whichEl1.style.display = "block"; } else { whichEl1.style.display = "none"; } } else { whichEl = eval("document." + el + "Child"); for(i=1;i<=numTotal;i++){ whichEl = eval("document." + scores[i] + "Child"); if(whichEl!=whichEl1) { whichEl.visibility = "hide"; } } if (whichEl.visibility == "hide") { whichEl.visibility = "show"; } else { whichEl.visibility = "hide"; } arrange(); }}onload = initIt; </script> </head> <body> <DIV id='KB1Parent' class='parent'><A href="#" onClick="expandIt('KB1'); return false"><STRONG>帝国cms模板</STRONG></A></DIV> <DIV id='KB1Child' class='child' > <a href="http://www.78moban.com/">帝国cms模板</a> <br /> <a href="http://www.78moban.com/">帝国cms模板</a> <br /> <a href="http://www.78moban.com/">帝国cms模板</a> <br /> </DIV> <DIV id='KB2Parent' class='parent'><A href="#" onClick="expandIt('KB2'); return false"><STRONG>帝国cms模板</STRONG></A></DIV> <DIV id='KB2Child' class='child' > <a href="http://www.78moban.com/">帝国cms模板</a> <br /> <a href="http://www.78moban.com/">帝国cms模板</a> <br /> <a href="http://www.78moban.com/">帝国cms模板</a> <br /> </DIV> <DIV id='KB3Parent' class='parent'><A href="#" onClick="expandIt('KB3'); return false"><STRONG>帝国cms模板</STRONG></A></DIV> <DIV id='KB3Child' class='child' > <a href="http://www.78moban.com/">帝国cms模板</a> <br /> <a href="http://www.78moban.com/">帝国cms模板</a> <br /> <a href="http://www.78moban.com/">帝国cms模板</a> <br /> </DIV> <DIV id='KB4Parent'class='parent'><A href="#" onClick="expandIt('KB4'); return false"><STRONG>帝国cms模板</STRONG></A></DIV> <DIV id='KB4Child' class='child' > <a href="http://www.78moban.com/">帝国cms模板</a> <br /> <a href="http://www.78moban.com/">帝国cms模板</a> <br /> <a href="http://www.78moban.com/">帝国cms模板</a> <br /> </DIV> <script>numTotal=5;scores[1]='KB1';scores[2]='KB1';scores[3]='KB2';scores[4]='KB3';scores[5]='KB4';scores[6]='KB5';scores[7]='KB6';scores[8]='KB7';scores[9]='KB8';scores[10]='KB9';scores[11]='KB10';scores[12]='KB11';scores[13]='KB12';scores[14]='KB13';</script> </body> </html>
全选代码复制
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=gb2312" /> <title>帝国cms二级树形菜单</title> <script language="JavaScript1.2"> scores = new Array(4);var numTotal=0;NS4 = (document.layers) ? 1 : 0;IE4 = (document.all) ? 1 : 0;ver4 = (NS4 || IE4) ? 1 : 0;if (ver4) { with (document) { write("<STYLE TYPE='text/css'>"); if (NS4) { write(".parent {position:absolute; visibility:visible}"); write(".child {position:absolute; visibility:visible}"); write(".regular {position:absolute; visibility:visible}") } else { write(".child {display:none}") } write("</STYLE>"); }}function getIndex(el) { ind = null; for (i=0; i<document.layers.length; i++) { whichEl = document.layers[i]; if (whichEl.id == el) { ind = i; break; } } return ind;}function arrange() { nextY = document.layers[firstInd].pageY +document.layers[firstInd].document.height; for (i=firstInd+1; i<document.layers.length; i++) { whichEl = document.layers[i]; if (whichEl.visibility != "hide") { whichEl.pageY = nextY; nextY += whichEl.document.height; } }}function initIt(){ if (!ver4) return; if (NS4) { for (i=0; i<document.layers.length; i++) { whichEl = document.layers[i]; if (whichEl.id.indexOf("Child") != -1) whichEl.visibility = "hide"; } arrange(); } else { divColl = document.all.tags("DIV"); for (i=0; i<divColl.length; i++) { whichEl = divColl(i); if (whichEl.className == "child") whichEl.style.display = "none"; } }}function expandIt(el) { if (!ver4) return; if (IE4) { whichEl1 = eval(el + "Child"); for(i=1;i<=numTotal;i++){ whichEl = eval(scores[i] + "Child"); if(whichEl!=whichEl1) { whichEl.style.display = "none"; } } whichEl1 = eval(el + "Child"); if (whichEl1.style.display == "none") { whichEl1.style.display = "block"; } else { whichEl1.style.display = "none"; } } else { whichEl = eval("document." + el + "Child"); for(i=1;i<=numTotal;i++){ whichEl = eval("document." + scores[i] + "Child"); if(whichEl!=whichEl1) { whichEl.visibility = "hide"; } } if (whichEl.visibility == "hide") { whichEl.visibility = "show"; } else { whichEl.visibility = "hide"; } arrange(); }}onload = initIt; </script> </head> <body> <DIV id='KB1Parent' class='parent'><A href="#" onClick="expandIt('KB1'); return false"><STRONG>帝国cms模板</STRONG></A></DIV> <DIV id='KB1Child' class='child' > <a href="http://www.78moban.com/">帝国cms模板</a> <br /> <a href="http://www.78moban.com/">帝国cms模板</a> <br /> <a href="http://www.78moban.com/">帝国cms模板</a> <br /> </DIV> <DIV id='KB2Parent' class='parent'><A href="#" onClick="expandIt('KB2'); return false"><STRONG>帝国cms模板</STRONG></A></DIV> <DIV id='KB2Child' class='child' > <a href="http://www.78moban.com/">帝国cms模板</a> <br /> <a href="http://www.78moban.com/">帝国cms模板</a> <br /> <a href="http://www.78moban.com/">帝国cms模板</a> <br /> </DIV> <DIV id='KB3Parent' class='parent'><A href="#" onClick="expandIt('KB3'); return false"><STRONG>帝国cms模板</STRONG></A></DIV> <DIV id='KB3Child' class='child' > <a href="http://www.78moban.com/">帝国cms模板</a> <br /> <a href="http://www.78moban.com/">帝国cms模板</a> <br /> <a href="http://www.78moban.com/">帝国cms模板</a> <br /> </DIV> <DIV id='KB4Parent'class='parent'><A href="#" onClick="expandIt('KB4'); return false"><STRONG>帝国cms模板</STRONG></A></DIV> <DIV id='KB4Child' class='child' > <a href="http://www.78moban.com/">帝国cms模板</a> <br /> <a href="http://www.78moban.com/">帝国cms模板</a> <br /> <a href="http://www.78moban.com/">帝国cms模板</a> <br /> </DIV> <script>numTotal=5;scores[1]='KB1';scores[2]='KB1';scores[3]='KB2';scores[4]='KB3';scores[5]='KB4';scores[6]='KB5';scores[7]='KB6';scores[8]='KB7';scores[9]='KB8';scores[10]='KB9';scores[11]='KB10';scores[12]='KB11';scores[13]='KB12';scores[14]='KB13';</script> </body> </html>
全选代码复制
新闻资讯 更多
- 【帝国cms教程】帝国CMS模板变量$GLOBALS[navclassid]用法分析04-03
- 【帝国cms教程】鲜为人知帝国CMS内容页调用上一篇和下一篇的精华方法汇总04-03
- 【帝国cms教程】怎么快速找出帝国CMS数据库配置文件路径及迁移网站后修改技巧!04-03
- 【帝国cms教程】帝国CMS模板$GLOBALS[navclassid]用法详解04-03
- 【帝国cms教程】帝国cms 7.5版列表页分页样式修改笔记04-02
- 【帝国cms教程】解决帝国CMS搜索页面模板不支持灵动标签和万能标签的方法04-02
- 【帝国cms教程】帝国CMS只备份栏目和模板的方法04-02
- 【帝国cms教程】帝国CMS怎样删除清空数据库记录?04-02
热门文章
- 178Moban源码谈谈免费源码与收费源码的区别
- 2帝国CMS忘记后台登陆用户名、密码、认证码的解决方法
- 3帝国CMS(EmpireCMS) v7.5后台任意代码执行漏洞及具体修复方法
- 4帝国CMS和WordPress 哪个好?哪个适合建站?
- 5如何解决Discuz的密码错误次数过多请15分钟后登陆的问题
- 6帝国cms灵动标签取得内容和栏目链接地址
- 7emlog pro 注册码“开心”教程(如果有一天,emlog官方版 或者 emlog免费版 跑路了,那用户怎么办?)
- 8织梦CMS在nginx下设置伪静态方法(附nginx伪静态规则)
- 9帝国cms后台登录出现”您还未登录”怎么解决?
- 10帝国cms7.5忘记登录密码 和忘记登录认证码以及多次登录 失败被锁定解决办法