过期作废 发表于 2007-4-27 11:15:49

***页面导航***树形菜单2

把下列代码加到网页的<body></body>标签之间 从google下载我的照片管理软件
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=gb2312">
<title>树形菜单2</title>
<style type=text/css>body {
    margin-top: 0px; font-size: 9pt; margin-left: 4px; margin-right: 0px; font-family: "宋体"
}
a {
    font-weight: 400; font-size: 9pt; color: black; text-decoration: none
}
a:hover {
    font-weight: 400; font-size: 9pt; color: red; text-decoration: underline
}
a:active {
    font: 9pt "宋体"; cursor: hand; color: #ff0033
}
</style>
<script language="javascript1.2">
scores = new array(20);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;      if (whichel.id == el) {            ind = i;            break;      }    }    return ind;}function arrange() {    nexty = document.layers.pagey +document.layers.document.height;    for (i=firstind+1; i<document.layers.length; i++) {      whichel = document.layers;      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;            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 + "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 + "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">
<img src='pic/reply.gif' border=0>分类一http://code.ik8.com/html/pic/reply.gif</a></div><div id='kb1child' class='parent'>
<a href='time1.htm' target='_target'> <img src='pic/shoucang.gif' border=0>0001http://code.ik8.com/html/pic/shoucang.gif</a><br>
<a href='time2.htm' target='_target'> <img src='pic/shoucang.gif' border=0>0002http://code.ik8.com/html/pic/shoucang.gif</a><br>
<a href='time8.htm' target='_target'> <img src='pic/shoucang.gif' border=0>0003http://code.ik8.com/html/pic/shoucang.gif</a></div>
<div id='kb2parent' class='parent'><a href="#" onclick="expandit('kb2'); return false">
<img src='pic/reply.gif' border=0>分类二http://code.ik8.com/html/pic/reply.gif</a></div><div id='kb2child' class='child'>
<a href='time1.htm' target='_target'> <img src='pic/shoucang.gif' border=0>0001http://code.ik8.com/html/pic/shoucang.gif</a><br>
<a href='time2.htm' target='_target'> <img src='pic/shoucang.gif' border=0>0002http://code.ik8.com/html/pic/shoucang.gif</a><br>
<a href='time8.htm' target='_target'> <img src='pic/shoucang.gif' border=0>0003http://code.ik8.com/html/pic/shoucang.gif</a></div>
<div id='kb3parent' class='parent'><a href="#" onclick="expandit('kb3'); return false">
<img src='pic/reply.gif' border=0>分类三http://code.ik8.com/html/pic/reply.gif</a></div><div id='kb3child' class='child'>
<a href='time1.htm' target='_target'> <img src='pic/shoucang.gif' border=0>0001http://code.ik8.com/html/pic/shoucang.gif</a><br>

<a href='time2.htm' target='_target'> <img src='pic/shoucang.gif' border=0>0002http://code.ik8.com/html/pic/shoucang.gif</a><br>
<a href='time8.htm' target='_target'> <img src='pic/shoucang.gif' border=0>0003http://code.ik8.com/html/pic/shoucang.gif</a></div>
<div id='kb4parent' class='parent'><a href="#" onclick="expandit('kb4'); return false">
<img src='pic/reply.gif' border=0>分类四http://code.ik8.com/html/pic/reply.gif</a></div><div id='kb4child' class='child'>
<a href='time1.htm' target='_target'> <img src='pic/shoucang.gif' border=0>0001http://code.ik8.com/html/pic/shoucang.gif</a><br>
<a href='time2.htm' target='_target'> <img src='pic/shoucang.gif' border=0>0002http://code.ik8.com/html/pic/shoucang.gif</a><br>
<a href='time8.htm' target='_target'> <img src='pic/shoucang.gif' border=0>0003http://code.ik8.com/html/pic/shoucang.gif</a></div>
<div id='kb5parent' class='parent'><a href="#" onclick="expandit('kb5'); return false">
<img src='pic/reply.gif' border=0>分类五http://code.ik8.com/html/pic/reply.gif</a></div><div id='kb5child' class='child'>
<a href='time1.htm' target='_target'> <img src='pic/shoucang.gif' border=0>0001http://code.ik8.com/html/pic/shoucang.gif</a><br>
<a href='time2.htm' target='_target'> <img src='pic/shoucang.gif' border=0>0002http://code.ik8.com/html/pic/shoucang.gif</a><br>
<a href='time8.htm' target='_target'> <img src='pic/shoucang.gif' border=0>0003http://code.ik8.com/html/pic/shoucang.gif</a></div>
<div id='kb6parent' class='parent'><a href="#" onclick="expandit('kb6'); return false">
<img src='pic/reply.gif' border=0>分类六http://code.ik8.com/html/pic/reply.gif</a></div><div id='kb6child' class='child'>
<a href='time1.htm' target='_target'> <img src='pic/shoucang.gif' border=0>0001http://code.ik8.com/html/pic/shoucang.gif</a><br>
<a href='time2.htm' target='_target'> <img src='pic/shoucang.gif' border=0>0002http://code.ik8.com/html/pic/shoucang.gif</a><br>
<a href='time8.htm' target='_target'> <img src='pic/shoucang.gif' border=0>0003http://code.ik8.com/html/pic/shoucang.gif</a></div>
<script>numtotal=6;scores='kb1';scores='kb1';scores='kb2';scores='kb3';scores='kb4';scores='kb5'</script>


</body>

</html>
      










--------------------------------------

http://www.huoyue.com.cn 活跃网,活跃人群的论坛,访问活跃网,将给您带来意想不到的收获,还可以免费为您开论坛,让您免费拥有与朋友、网友交流的论坛。你是年轻人吗?你活跃你就上!
页: [1]
查看完整版本: ***页面导航***树形菜单2