CSDN首页 空间 新闻 论坛 Blog 下载 读书 网摘 搜索 .NET Java 视频 接项目 求职 在线学习 买书 程序员 通知
不看会后悔的Windows XP之经验谈 简单快捷DIY实用家庭影院
CSDN社区
搜索 收藏 打印 关闭
CSDN社区 >  Web 开发 >  ASP

有谁能用css或脚本语言给我作一个树状目录吗?要源码,高分相送!

楼主mixiaobo(星星只我心)2003-12-02 12:31:33 在 Web 开发 / ASP 提问

本人急需要树状目录的原代码,高手请帮帮忙!!!谢谢!! 问题点数:100、回复次数:14Top

1 楼wch0410(宁肯笑着流泪,绝不哭着后悔)回复于 2003-12-02 12:36:37 得分 0

<HTML>  
  <HEAD>  
  <META   NAME="GENERATOR"   Content="Microsoft   Visual   Studio   6.0">  
  <TITLE>MenuList</TITLE>  
  <style   type="text/css">  
  .divS   {border:solid   1px   #336699;width:180}  
  td   {cursor:hand}  
  .trSndHide   {display:none}  
  .trSndShow   {display:}  
  </style>  
  </HEAD>  
  <BODY>  
   
  <div   class="divS">  
      <table>  
          <tr   id="firstA"   onclick="checkFrsa()">  
              <td>menuA</td>  
          </tr>  
          <tr   id="sndAa">  
              <td>&nbsp;&nbsp;&nbsp;menu11</td>  
          </tr>  
          <tr     id="sndAb">  
              <td>&nbsp;&nbsp;&nbsp;menu12</td>  
          </tr>  
          <tr   onclick="checkFrsb()"   id="firstB">  
              <td>menuB</td>  
          </tr>  
          <tr   class="trSndHide"   id="sndBa">  
              <td>&nbsp;&nbsp;&nbsp;menu21</td>  
          </tr>  
          <tr   class="trSndHide"   id="sndBb">  
              <td>&nbsp;&nbsp;&nbsp;menu22</td>  
          </tr>                  
      </table>  
  </div>  
  <script   language="javascript">  
  function   checkFrsb(){  
      window.sndAa.className   =   "trSndHide";  
      window.sndAb.className   =   "trSndHide";  
      window.sndBa.className   =   "trSndShow";  
      window.sndBb.className   =   "trSndShow";      
  }  
  function   checkFrsa(){  
      window.sndAa.className   =   "trSndShow";  
      window.sndAb.className   =   "trSndShow";  
      window.sndBa.className   =   "trSndHide";  
      window.sndBb.className   =   "trSndHide";      
  }  
  </script>  
  </BODY>  
  </HTML>  
  Top

2 楼lovehwq21(努力学Brio)回复于 2003-12-02 12:37:57 得分 0

裡面的圖片自己搞定(18X18的gif,合攏.BigHe.gif,打開.BigKai.gif,明細(沒子目錄)details.gif)  
   
  <Script   Language="JavaScript">  
  //Name﹕無限層樹狀  
  //Design:LiuZXIT  
  //OverTime:2003/3/19  
  //Note:在IE5.i上測試通過  
   
  var   strStyle='<style   type="text/css">'  
  strStyle+='span.SelectIng{color:#ff00ff;border:solid   1pt   #666666;padding:0.5pt;height:4px;background-color:#cccccc;}'  
  strStyle+='span.NoSelect{color:#000084;border:solid   1pt   #ffffff;padding:0.5pt;height:4px;background-color:#ffffff;}'  
  strStyle+='span.SelectEd{color:#D02090;border:solid   1pt   #888888;padding:0.5pt;height:4px;background-color:#f3f3f3;}'  
  strStyle+='</style>'  
  document.write(strStyle)  
   
  var   imgOpen='bigkai.gif',imgClose='bighe.gif',imgDetail='details.gif';  
  var   myRs=new   Array(), selectItem;  
  function   compare(a,b)   {return   parseInt(a[1])   -   parseInt(b[1])}  
  function   InsertItem(s){myRs[myRs.length++]   =   s.split(/,/);}  
   
  function   iniImages(asImgOpen,asImgClose,asImgDetail){ //初始化圖片文件名  
  if(asImgOpen   !=   null)imgOpen=asImgOpen;  
  if(asImgClose   !=   null)imgClose=asImgClose;  
  if(asImgDetail   !=   null)imgDetail=asImgDetail;  
  }  
   
  function   ExCloAll(n){  
  var   d=document.all('0'), e=d.all.tags('div')  
  for   (i=0;i<e.length;i++)e[i].style.display=(n==1?'block':'none')  
  e=d.all.tags('p')  
  for   (i=0;i<e.length;i++){if(ChkExist(e[i].children[1].value))e[i].children[0].src=(n==1?imgOpen:imgClose)}  
  }  
   
  function   ExCloItem(){ //點擊文字時觸發  
  var   c,e=event.srcElement, p=e.parentElement.children  
  if(e.myHref!=null){  
  alert((e.myTarget!=null?e.myTarget:'window')+'.location='+e.myHref) //要改成連接到某頁只需把alert改成eval即可  
  }  
  else{window.status='no   href'};  
  if(selectItem!=null)selectItem.className='NoSelect';  
  e.className='SelectEd'  
  selectItem=event.srcElement;  
  c=document.all(e.value)  
  if(c.tagName=='P')return  
  p[0].src=(p[0].src.indexOf(imgClose)==-1?imgClose:imgOpen)  
  c.style.display=(c.style.display=='none'?'block':'none')  
  }  
   
  function   ExCloItem2(){ //點擊圖片時觸發  
  var   c,e=event.srcElement, p=e.parentElement.children  
  if(c=document.all(p[1].value)){  
  if(e.src.indexOf(imgDetail)==-1)e.src=(e.src.indexOf(imgClose)==-1?imgClose:imgOpen)  
  if(e.parentElement.id==null   ||   e.parentElement.id=="")c.style.display=(c.style.display=='block'?'none':'block')  
  }else{if(e.src.indexOf(imgDetail)==-1)e.src=imgClose;}  
  }  
   
  function   OutItem(){  
  var   e=event.srcElement  
  if(selectItem   !=   '')e.className=(selectItem==e?'SelectEd':'NoSelect')  
  else   e.className='NoSelect'  
  }  
   
  function   ChkExist(n){  
  n=parseInt(n)  
  if((n<myRs[0][1])||(n>myRs[myRs.length-1][1]))return   false  
  var   a,b,c,x=0, y=parseInt(myRs.length/2), z=myRs.length-1  
  while((x!=y)&&(y!=z)){  
  a=myRs[x][1], b=myRs[y][1], c=myRs[z][1]  
  if(n==a||n==b||n==c)return   true  
  if(n>b)x=y;  
  else   z=y;y=parseInt(x+z);  
  y=parseInt((x+z)/2);  
  }  
  return   false  
  }  
   
  function   getParent(n){  
  var   strRs=   "",k=0;  
  for   (var   i=0;   i   <   myRs.length;   i++) strRs   +=   ";"+myRs[i].join(",");  
  k=strRs.indexOf(n);  
  if(k==-1)return   -1  
  strRs=strRs.substring(k   +   n.length   +   1);  
  strRs=strRs.substring(0,strRs.indexOf(','));  
  return   strRs  
  }  
   
  function   addItem(s){  
  if(s==null)return;  
  var   arrItem   =   s.split(/,/),objParent,strHtml="",strP,arrRs=new   Array();  
  if(document.all(arrItem[0])!=null){  
  alert('相同ID節點已存在,無法加入')  
  return   false  
  }  
  if(document.all(arrItem[1])==null){  
  alert('指定ID節點不存在,無法加入')  
  return   false  
  }  
  objParent=document.all(arrItem[1]);  
  if(!ChkExist(arrItem[1])){ //如果指向的是一個detail  
  for   (var   i=0;   i   <   myRs.length;   i++){  
  if(eval('/^'+arrItem[0]+',/').test(myRs[i].join(","))){  
  arrRs=myRs[i];  
  break;  
  }  
  }  
  strHtml+='<div   id="'+arrItem[1]+'"   style="font:10pt;cursor:hand;position:relative;left:20;display:block;">';  
  strHtml+='<p   id="'+arrItem[0]+'"   style="margin:0pt;"><img   style="vertical-align:top;"   onclick="ExCloItem2()"   src="'+imgDetail+'"><span   onclick="ExCloItem()"'+(arrItem.length>3?'   myHref="'+arrItem[3]+'"':'')+(arrItem.length>4?'   myTarget="'   +   arrItem[4]+'"':'')   +'   value="'+arrItem[0]+'"   class="NoSelect"   onmouseout="OutItem()"   onmouseover="this.className=\'SelectIng\'">'+arrItem[2]+'</span></p></div>'  
  objParent.children[0].src=imgOpen;  
  objParent.id=null;  
  objParent.outerHTML+=strHtml;  
  }else{ //指向的是一個文件夾  
  strHtml+='<p   id="'+arrItem[0]+'"   style="margin:0pt;"><img   style="vertical-align:top;"   onclick="ExCloItem2()"   src="'+imgDetail+'"><span   onclick="ExCloItem()"'+(arrItem.length>3?'   myHref="'+arrItem[3]+'"':'')+(arrItem.length>4?'   myTarget="'   +   arrItem[4]+'"':'')   +'   value="'+arrItem[0]+'"   class="NoSelect"   onmouseout="OutItem()"   onmouseover="this.className=\'SelectIng\'">'+arrItem[2]+'</span></p>'  
  objParent.innerHTML+=strHtml;  
  }  
  objParent=document.all(arrItem[1]);  
  myRs[myRs.length++]   =   arrItem;  
  myRs.sort(compare);  
  arrItem=null;  
  }  
   
  function   deleteItem(){  
  if(selectItem==null)return   false;  
  n=parseInt(selectItem.value)  
  var   a,b,c,x=0, y=parseInt(myRs.length/2), z=myRs.length-1  
  while((x!=y)&&(y!=z)){  
  a=myRs[x][1], b=myRs[y][1], c=myRs[z][1]  
  if(n==a){myRs=myRs.slice(0,x).concat(myRs.slice(x+1));break;}  
  if(n==b){myRs=myRs.slice(0,y).concat(myRs.slice(y+1));break;}  
  if(n==c){myRs=myRs.slice(0,z).concat(myRs.slice(z+1));break;}  
  if(n>b)x=y;  
  else   z=y;y=parseInt(x+z);  
  y=parseInt((x+z)/2);  
  }  
   
  var   objSon=document.all(selectItem.value);  
  var   objP=selectItem.parentElement;  
  var   objDiv=objP.parentElement;  
  if(objSon.tagName=="DIV")objSon.outerHTML='';  
  objP.outerHTML='';  
  if(objDiv.innerHTML==''){  
  var   arrChild=objDiv.parentElement.children;  
  for(var   i=0;i<arrChild.length;i++){  
  if(arrChild[i]==objDiv){  
  var   strId=objDiv.id;  
  objDiv.id='';  
  arrChild[i-1].id=strId;  
  arrChild[i-1].children[0].src=imgDetail; //如果不想改變文件夾的圖標可注解掉即可  
  break;  
  }  
  }  
  objDiv.outerHTML='';  
  }  
  selectItem=null;  
  }  
   
  function   drawTree(n){  
  if(n==0){  
  myRs.sort(compare)  
  document.write('<p   style="font:10pt;cursor:hand;"><span   onclick="ExCloAll(1)">全部展開</span>&nbsp;&nbsp;<span   onclick="ExCloAll(0)">全部合攏</span></p>')  
  }  
  if   (ChkExist(n)!=true)return  
  document.write('<div   id="'+n+'"   style="font:10pt;cursor:hand;'+(n!=0?'position:relative;left:20;display:none;':'')+'">')  
  for(var   i=0;i<myRs.length;i++){  
  if   (parseInt(myRs[i][1])>n)break;  
  if   (myRs[i][1]==n){  
  document.write('<p   style="margin:0pt;"'+(ChkExist(myRs[i][0])?'':'   id="'+myRs[i][0]+'"')+'><img   style="vertical-align:top;"   onclick="ExCloItem2()"   src="'+(ChkExist(myRs[i][0])?imgClose:imgDetail)+'">')  
  document.write('<span   onclick="ExCloItem()"'+(myRs[i].length>3?'   myHref="'+myRs[i][3]+'"':'')+(myRs[i].length>4?'   myTarget="'   +   myRs[i][4]+'"':'')   +'"   value="'+myRs[i][0]+'"   class="NoSelect"   onmouseout="OutItem()"   onmouseover="this.className=\'SelectIng\'">'+myRs[i][2]+'</span></p>')  
  drawTree(myRs[i][0])  
  }  
  }  
  document.write('</div>')  
  }  
   
  iniImages('bigkai.gif','bighe.gif');  
  InsertItem('1,0,根目錄1')  
  InsertItem('11,1,子目錄1')  
  InsertItem('111,11,孫目錄1,b.htm,parent.frmMain')  
  InsertItem('1111,111,曾孫目錄,c.htm,top')  
  InsertItem('11111,1111,玄孫目錄,d.htm,window')  
  InsertItem('12,1,子目錄2')  
  InsertItem('2,0,根目錄2')  
  InsertItem('21,2,子目錄A,d.htm')  
  InsertItem('22,2,子目錄B')  
  InsertItem('3,0,根目錄3')  
  drawTree(0)  
  </Script>  
  <input   type="button"   value="addItem"   onclick="addItem('121,12,孫目錄B')">  
  <input   type="button"   value="addItem"   onclick="addItem('122,12,孫目錄C')">  
  <input   type="button"   value="addItem"   onclick="addItem('1211,121,曾孫目錄1')">  
  <input   type="button"   value="deleteItem"   onclick="deleteItem()">  
  Top

3 楼fangpeng2003(阿房公(阿房制造,http://work.ahfun.net))回复于 2003-12-02 12:47:42 得分 0

http://fason.nease.net/zhuanti/tree/dtree/dtree.htmTop

4 楼fuyungril(我要学习.net)回复于 2003-12-02 13:49:58 得分 0

<html>  
  <head>  
  <META   name=VI60_defaultClientScript   content=VBScript>  
  <meta   http-equiv="Content-Type"   content="text/html;   charset=gb2312">  
  <title>asp树的研究</title>  
  </head>  
  <style   type="text/css">  
  <!--  
  .aa   {  
  font-size:   14px;  
  color:   #000000;  
  text-align:   center;  
  vertical-align:   middle;  
  letter-spacing:   0px;  
  word-spacing:   0px;  
  }  
  -->  
  </style>  
  <body   bgcolor="DEE3F7">  
  <%  
              dim   cn,rs,SQL   ,Para,NumChild  
              set   cn=server.CreateObject("ADODB.connection")  
              set   rs=server.createobject("ADODB.recordset")  
              set   rs1=server.createobject("ADODB.recordset")  
              cn.Open     "Driver={Microsoft   Access   Driver   (*.mdb)};   DBQ="   &   Server.MapPath("tree.mdb")            
              SQL="Select   *   from   tree   order   by   ID"  
              rs.open   SQL,cn,3,2            
  do   while   not   rs.EOF    
  SQL="Select   ID   from   tree   where   ID   like   '"   &   rs("ID")   &   "%'   and   ID<>'"   &   rs("ID")   &   "'   order   by   ID"  
  Para=rs("ID")   &   "|"  
  NumChild=0  
  rs1.open   SQL,cn,   3,2  
  NumChild=rs1.RecordCount  
  do   while   not   rs1.EOF    
  Para   =Para     &   rs1("ID")   &   "|"  
  rs1.MoveNext  
  loop  
  Para=cstr(trim(left(Para,len(Para)-1)))  
  rs1.Close  
  %>  
  <table id="T<%=rs("ID")%>"    
  border=1    
  cellpadding=0    
  cellspacing=0    
  bordercolor="#DEE3F7"    
  class="aa"    
  abbr="<%=Para%>"  
  summary=<%=checkid(rs("ID"))%>  
  style="cursor:hand"  
  onClick="vbs:subtree   '<%=Para%>'"   >  
   
      <tr>    
  <td   width="<%=17+checkid(rs("ID"))*20%>"    
  height="20"   align="right">    
  <table   width="20"   height="20"   border="1"   cellpadding="0"   cellspacing="0"   bordercolor="#DEE3F7">  
                  <tr>  
           
                      <td   align="center"   valign="middle"   bordercolor="#000000"   id="R<%=rs("ID")%>"   ><%if   NumChild=0   then   Response.Write   "."   else   Response.Write   "-"%></td>  
      </tr>  
  </table>  
      </td>  
   
          <td height="20"    
  nowrap  
  bordercolor="#FFFFFF"    
  onMouseOver="vbs:me.bgcolor='#CCCCCC':me.bordercolor='#999999'"  
  onMouseOut="vbs:me.bgcolor='#DEE3F7':me.bordercolor='#ffffff'"  
  title="<%=rs("HyperLink")%>">    
              <%=rs("Name")%></td>  
      </tr>  
    </table>  
   
     
  <%  
    rs.MoveNext  
    loop  
    rs.Close:set   rs=nothing  
    cn.Close:set   cn=nothing  
    function   checkid(x)  
  dim Tempnum  
  Tempnum=0  
  for   i=1   to   len(x)  
  if   mid(x,i,1)="_"   then    
  Tempnum=Tempnum+1  
  end   if  
  next  
  checkid=Tempnum  
    end   function    
   
   
    %>  
      <script   language=VBS>  
  sub   subtree(Client_para)  
  if   instr(Client_para,"|")=0   then   exit   sub  
  Myarray=split(Client_para,"|")  
  Mytext=eval("R"   &   Myarray(0)   &   ".innertext")  
  select   case   Mytext  
  case   "+"  
  document.all.item("R"   &   Myarray(0)).innertext="-"  
  for   i=1   to   ubound(Myarray)  
  if     eval("T"   &   Myarray(i)   &   ".summary")-eval("T"   &   Myarray(0)   &   ".summary")=1   then  
  document.all.item("T"   &   Myarray(i)).style.display="block"  
  end   if  
  if     eval("T"   &   Myarray(i)   &   ".summary")-eval("T"   &   Myarray(0)   &   ".summary")>1   then  
  document.all.item("T"   &   Myarray(i)).style.display="none"  
  end   if  
  next  
  case   "-"  
  document.all.item("R"   &   Myarray(0)).innertext="+"  
  for   i=1   to   ubound(Myarray)  
  if     eval("T"   &   Myarray(i)   &   ".summary")-eval("T"   &   Myarray(0)   &   ".summary")>=1   then  
  document.all.item("T"   &   Myarray(i)).style.display="none"  
  if   eval("R"   &   Myarray(i)   &   ".innertext")="-"   then  
  document.all.item("R"   &   Myarray(i)).innertext="+"  
  end   if  
  end   if  
  next  
  end   select  
  set   Myarray=nothing  
  end   sub  
   
  Sub   document_onselectstart  
  document.selection.clear  
  End   Sub  
   
  if   isobject(eval("T1"))     then    
  subtree   document.all("T1").abbr  
  subtree   document.all("T1").abbr  
  end   if  
  </script>  
   
  </html>  
  你再做一个数据库,id是如果是一级目录就用其所长1_1,如果它下面有两个子目录,就用1_1_1和1_1_2,   依次类推,如果1_1_1下面有两个子目录,就用1_1_1_1和1_1_1_2Top

5 楼hover_online(ξ芎メ)回复于 2003-12-02 13:52:24 得分 0

邮箱给你发!Top

6 楼xmanvictor(废物点心)回复于 2003-12-02 14:07:18 得分 0

顶Top

7 楼lqflsh(不要让困难成为理由)回复于 2003-12-02 14:35:34 得分 0

我晕好多。  
  www.9499.net这里。Top

8 楼online(龙卷风V4.0--决战江湖(MS MVP-VB))回复于 2003-12-02 15:59:52 得分 0

http://fason.nease.net  
  看看树形结构演示Top

9 楼laily(阿赖)回复于 2003-12-02 18:54:03 得分 0

www.9499.net?go=tcTop

10 楼dingdi(dingding)回复于 2003-12-02 19:01:30 得分 0

谢谢,俺也需要Top

11 楼gjd111686(数字金刚)回复于 2003-12-02 19:35:08 得分 0

自己下一个多的是  
  http://fason.nease.net/zhuanti/tree/dtree/dtree.htmTop

12 楼monkeys(Myron.Liu)回复于 2003-12-02 19:44:38 得分 0

看这个,蓝色街灯写的:  
   
  http://expert.csdn.net/Expert/topic/2210/2210140.xml?temp=.2248804  
   
  很值得学习Top

13 楼aspczlover(你的骄傲...)回复于 2003-12-03 15:34:55 得分 0

<html>  
   
  <head>  
   
  <meta   http-equiv="Content-Type"   content="text/html;   charset=gb2312">  
   
  <LINK   REL="stylesheet"   TYPE="text/css"   HREF="css/mis.css">  
   
  <title></title>  
   
  <style>  
   
  A   {text-decoration:   none}  
   
   
   
  UL   {font-family:   Arial;   font-size:   10pt}  
   
   
   
  .Tclose   {list-Style-Image:   url('image/close.gif');align=left;   cursor:   hand;font-color:red;}  
   
  .Topen     {list-Style-Image:   url('image/open.gif');   align=left;   cursor:   hand;font-color:#cccccc;}  
   
   
   
  .TLclose   {display:   none;   list-Style-Image:   url('image/list.gif');align=left;font-color:#cccccc;}  
   
  .TLopen     {list-Style-Image:   url('image/list.gif');align=left;font-color:#cccccc;}  
   
   
   
  </style>  
   
  <base   target="right">  
   
  </head>  
   
  <body   background=image/bg1.gif>  
   
   
   
  <script>  
   
  /*------------------------------------  
   
  排列树形目录菜单   1.0  
   
  -------------------------------------*/  
   
  function   AddTree(word,id,topid)  
   
  {  
   
  var   topobj   =   null  
   
   
   
  if(!eval("window.T"+topid))  
   
  {  
   
  MarkDiv.insertAdjacentHTML("beforeEnd","<li   id='T"+topid+"'   class='Tclose'></li><ul   id='T"+topid+"_list'   class='TLclose'></ul>")  
   
  }  
   
   
   
  topobj   =   eval("window.T"+topid+"_list")  
   
   
   
  if(eval("window.T"+id))  
   
  {  
   
  var   InsertTreeobj   =   eval("window.T"+id)  
   
  InsertTreeobj.innerHTML   =   word  
   
  var   InsertTreeListobj   =     eval("window.T"+id+"_list")  
   
   
   
  topobj.insertAdjacentHTML("beforeEnd",InsertTreeobj.outerHTML+InsertTreeListobj.outerHTML)  
   
   
   
  InsertTreeobj.outerHTML   =   ""  
   
  InsertTreeListobj.outerHTML   =   ""  
   
  }  
   
  else  
   
  {  
   
  topobj.insertAdjacentHTML("beforeEnd","<li   id='T"+id+"'   class='Tclose'   >"+word+"</li><ul   id='T"+id+"_list'   class='TLclose'></ul>")  
   
  }  
   
  }  
   
   
   
  function   AddLink(word,url,id,topid)  
   
  {  
   
  var   topobj   =   null  
   
   
   
   
   
  if(!eval("window.T"+topid))  
   
  {  
   
  MarkDiv.insertAdjacentHTML("beforeEnd","<li   id='T"+topid+"'   class='Tclose'></li><ul   id='T"+topid+"_list'   class='TLclose'></ul>")  
   
  }  
   
   
   
  topobj   =   eval("window.T"+topid+"_list")  
   
   
   
  if(eval("window.L"+id))  
   
  {  
   
  var   InsertLinkobj   =   eval("window.L"+id)  
   
   
   
  topobj.insertAdjacentHTML("beforeEnd",InsertLinkobj.outerHTML)  
   
   
   
  InsertLinkobj.outerHTML   =   ""  
   
  }  
   
  else  
   
  {  
   
  topobj.insertAdjacentHTML("beforeEnd","<li   id='L"+id+"'><a   href='"+url+"'   target='right'>"+word+"</a></li>")  
   
  }  
   
   
   
  }  
   
   
   
   
   
  function   document.onclick()  
   
  {  
   
  var   obj   =   null  
   
  var   objlist   =   null  
   
   
   
  if(event.srcElement.tagName!="LI")  
   
  return  
   
   
   
  if(event.srcElement.className=="Tclose")  
   
  {  
   
  obj   =   event.srcElement  
   
   
   
  objlist   =   eval("window."+obj.id+"_list")  
   
   
   
  obj.className   =   "Topen"  
   
  objlist.className   =   "TLopen"  
   
   
   
  return  
   
  }  
   
   
   
  if(event.srcElement.className   ==   "Topen")  
   
  {  
   
  obj   =   event.srcElement  
   
   
   
  objlist   =   eval("window."+obj.id+"_list")  
   
   
   
  obj.className   =   "Tclose"  
   
   
   
  objlist.className   =   "TLclose"  
   
   
   
  return  
   
  }  
   
  }  
   
  </script>  
   
   
   
            <li   id="T0"><font   size=2   id="MarkDiv"   style="display:   none">功能列表</font>   </li>  
   
                        <ul   id="T0_list"   ></ul>  
   
  <script>  
   
  AddTree("部门管理","2","0");  
   
  AddLink("部门列表","dep2.htm","2","2");  
   
  AddLink("部门添加","dep1.htm","33","2");  
   
  AddLink("部门修改","dep3.htm","34","2");  
   
   
   
   
   
  AddTree("人员资料管理","3","0");  
   
  AddLink("资料查询","human1.htm","39","3");  
   
  AddLink("资料添加","human1.htm","3","3");  
   
  AddLink("资料修改","human2.htm","4","3");  
   
  AddLink("资料删除","human2.htm","35","3");  
   
  AddLink("担保人添加","human2.htm","36","3");  
   
  AddLink("担保人修改","human2.htm","37","3");  
   
  AddLink("担保人删除","human2.htm","38","3");  
   
   
   
   
   
  AddTree("系统用户管理","4","0");  
   
  AddLink("用户添加","add_sysuser.htm","5","4");  
   
  AddLink("用户修改","aspsky.net","6","4");  
   
   
   
  AddTree("车辆管理","5","0");  
   
  AddLink("信息添加","add_car.htm","7","5");  
   
  AddLink("信息修改","search.asp","8","5");  
   
   
   
   
   
  AddTree("装备管理","6","0");  
   
  AddLink("装备发放","index.htm","9","6");  
   
   
   
   
   
  AddTree("日常办公管理","7","0");  
   
  AddLink("打/复印登记","entry.asp","10","7");  
   
   
   
  AddTree("客户关系管理","8","0");  
   
  AddLink("资料添加","entry.asp","11","8");  
   
  AddLink("合同添加","entry.asp","12","8");  
   
   
   
  AddTree("文件流转","9","0");  
   
  AddLink("起草文件","entry.asp","13","9");  
   
   
   
  AddTree("枪弹管理","10","0");  
   
  AddLink("领用登记","entry.asp","14","10");  
   
   
   
  AddTree("扣分管理","11","0");  
   
  AddLink("扣分登记","entry.asp","15","11");  
   
  AddLink("扣分查询","entry.asp","16","11");  
   
   
   
  AddTree("电子邮件","12","0");  
   
  AddLink("收件箱","entry.asp","17","12");  
   
  AddLink("垃圾箱","entry.asp","18","12");  
   
  AddLink("地址簿","entry.asp","19","12");  
   
   
   
  AddTree("工作之余","13","0");  
   
  AddLink("在线音乐","entry.asp","20","13");  
   
  AddLink("电子书籍","entry.asp","21","13");  
   
  AddLink("法律法规","entry.asp","22","13");  
   
  AddLink("视频点播","entry.asp","23","13");  
   
  AddLink("在线论坛","entry.asp","27","13");  
   
   
   
  AddTree("信息送报","14","0");  
   
  AddLink("起草文件","entry.asp","24","14");  
   
  AddLink("查看文件","entry.asp","25","14");  
   
   
   
  AddTree("财务信息管理","14","0");  
   
  AddLink("报表查看","entry.asp","26","14");  
   
   
   
  AddTree("系统维护","15","0");  
   
  AddLink("公告栏管理","entry.asp","28","15");  
   
  AddLink("论坛管理","entry.asp","29","15");  
   
  AddLink("电子书籍管理","entry.asp","30","15");  
   
  AddLink("法律法规管理","entry.asp","31","15");  
   
  AddLink("视频点播管理","entry.asp","32","15");  
   
   
   
   
   
  MarkDiv.style.display   =   ""  
   
  </script>  
   
   
   
  </body>  
   
   
   
  </html>  
   
   
   
   
   
   
  Top

14 楼aspczlover(你的骄傲...)回复于 2003-12-03 15:38:53 得分 100

这个保证好用  
  <html>  
  <head>  
  <meta   NAME="GENERATOR"   Content="Microsoft   FrontPage   5.0">  
  <link   rel="stylesheet"   type="text/css"   href="xcss.css">  
  <script   language="javascript">  
  current_div_id   =   -1;  
  function   diva_show(div_id,type_id)  
  {  
  if   (document.all.item("a"+div_id).style.display   ==   "block")  
  {  
  document.all.item("a"+div_id).style.display   =   "none";  
  document.all.item("i"+div_id).src="images/icon_book_close.gif";  
  document.all.item("f"+div_id).src="images/plus1.gif";  
  }  
  else  
  {  
  document.all.item("a"+div_id).style.display   =   "block";  
  document.all.item("i"+div_id).src="images/icon_book_open.gif";  
  document.all.item("f"+div_id).src="images/minus.gif";  
  }  
  if   (current_div_id   !=   -1)  
  {  
  document.all.item("link"+current_div_id).style.color   =   "#000066";    
  }  
  current_div_id   =   div_id;  
  document.all.item("link"+div_id).style.color   =   "red";    
  if   ((type_id   !=   '0')&&(type_id   !=   ''))    
  {  
  top.xbody.window.location   =   "booklist.asp?b_type="   +   type_id;  
  }  
  }  
  </script>  
  </head>  
  <body   topmargin="0"   background="images/zapsmbknd.gif">  
  <table   WIDTH="100%"   BORDER="0"   CELLSPACING="0"   CELLPADDING="0">  
  <tr>  
  <td   colspan="2"><img   SRC="images/win16.gif"   WIDTH="16"   HEIGHT="16">&nbsp;<font   style="font-family:隶书,Arial;font-size:20px;font-weight:bold">书库</font></td>  
  </tr>  
  </table>  
  <a   name="aa465"></a>  
  <table   CELLSPACING="0"   CELLPADDING="0">  
  <tr>  
  <td   colspan="2">  
  <a   href="#aa465"   onclick="diva_show('465','11');"   id="link465">  
  <img   name="f465"   SRC="images/plus1.gif"   border="0"   WIDTH="16"   HEIGHT="18">  
  <img   name="i465"   SRC="images/icon_book_close.gif"   border="0">教育信息</a><br>  
  </td>  
  </tr>  
  </table>  
  <div   id="a465"   style="display:none">  
  <table   WIDTH="100%"   BORDER="0"   CELLSPACING="0"   CELLPADDING="0">  
  </table>  
  </div>  
  <a   name="aa466"></a>  
  <table   CELLSPACING="0"   CELLPADDING="0">  
  <tr>  
  <td   colspan="2">  
  <a   href="#aa466"   onclick="diva_show('466','12');"   id="link466">  
  <img   name="f466"   SRC="images/plus1.gif"   border="0"   WIDTH="16"   HEIGHT="18">  
  <img   name="i466"   SRC="images/icon_book_close.gif"   border="0">经济法律</a><br>  
  </td>  
  </tr>  
  </table>  
  <div   id="a466"   style="display:none">  
  <table   WIDTH="100%"   BORDER="0"   CELLSPACING="0"   CELLPADDING="0">  
  <tr>  
  <td   width="18"> </td>  
  <td>  
  <a   name="aa469"></a>  
  <table   CELLSPACING="0"   CELLPADDING="0">  
  <tr>  
  <td   colspan="2">  
  <a   href="#aa469"   onclick="diva_show('469','205');"   id="link469">  
  <img   name="f469"   SRC="images/plus1.gif"   border="0"   WIDTH="16"   HEIGHT="18">  
  <img   name="i469"   SRC="images/icon_book_close.gif"   border="0">法律综合</a><br>  
  </td>  
  </tr>  
  </table>  
  <div   id="a469"   style="display:none">  
  <table   WIDTH="100%"   BORDER="0"   CELLSPACING="0"   CELLPADDING="0">  
  </table>  
  </div>  
  </td>  
  </tr>  
  <tr>  
  <td   width="18"> </td>  
  <td>  
  <a   name="aa470"></a>  
  <table   CELLSPACING="0"   CELLPADDING="0">  
  <tr>  
  <td   colspan="2">  
  <a   href="#aa470"   onclick="diva_show('470','206');"   id="link470">  
  <img   name="f470"   SRC="images/plus1.gif"   border="0"   WIDTH="16"   HEIGHT="18">  
  <img   name="i470"   SRC="images/icon_book_close.gif"   border="0">公共关系学</a><br>  
  </td>  
  </tr>  
  </table>  
  <div   id="a470"   style="display:none">  
  <table   WIDTH="100%"   BORDER="0"   CELLSPACING="0"   CELLPADDING="0">  
  </table>  
  </div>  
  </td>  
  </tr>  
  <tr>  
  <td   width="18"> </td>  
  <td>  
  <a   name="aa467"></a>  
  <table   CELLSPACING="0"   CELLPADDING="0">  
  <tr>  
  <td   colspan="2">  
  <a   href="#aa467"   onclick="diva_show('467','203');"   id="link467">  
  <img   name="f467"   SRC="images/plus1.gif"   border="0"   WIDTH="16"   HEIGHT="18">  
  <img   name="i467"   SRC="images/icon_book_close.gif"   border="0">创业实战</a><br>  
  </td>  
  </tr>  
  </table>  
  <div   id="a467"   style="display:none">  
  <table   WIDTH="100%"   BORDER="0"   CELLSPACING="0"   CELLPADDING="0">  
  <tr>  
  <td   width="18"> </td>  
  <td>  
  <a   name="aa780"></a>  
  <table   CELLSPACING="0"   CELLPADDING="0">  
  <tr>  
  <td   colspan="2">  
  <a   href="#aa780"   onclick="diva_show('780','330');"   id="link780">  
  <img   name="f780"   SRC="images/plus1.gif"   border="0"   WIDTH="16"   HEIGHT="18">  
  <img   name="i780"   SRC="images/icon_book_close.gif"   border="0">国内创业者故事</a><br>  
  </td>  
  </tr>  
  </table>  
  <div   id="a780"   style="display:none">  
  <table   WIDTH="100%"   BORDER="0"   CELLSPACING="0"   CELLPADDING="0">  
  </table>  
  </div>  
  </td>  
  </tr>  
  <tr>  
  <td   width="18"> </td>  
  <td>  
  <a   name="aa781"></a>  
  <table   CELLSPACING="0"   CELLPADDING="0">  
  <tr>  
  <td   colspan="2">  
  <a   href="#aa781"   onclick="diva_show('781','330');"   id="link781">  
  <img   name="f781"   SRC="images/plus1.gif"   border="0"   WIDTH="16"   HEIGHT="18">  
  <img   name="i781"   SRC="images/icon_book_close.gif"   border="0">国外创业者故事</a><br>  
  </td>  
  </tr>  
  </table>  
  <div   id="a781"   style="display:none">  
  <table   WIDTH="100%"   BORDER="0"   CELLSPACING="0"   CELLPADDING="0">  
  </table>  
  </div>  
  </td>  
  </tr>  
  </table>  
  </div>  
  </td>  
  </tr>  
  <tr>  
  <td   width="18"> </td>  
  <td>  
  <a   name="aa468"></a>  
  <table   CELLSPACING="0"   CELLPADDING="0">  
  <tr>  
  <td   colspan="2">  
  <a   href="#aa468"   onclick="diva_show('468','204');"   id="link468">  
  <img   name="f468"   SRC="images/plus1.gif"   border="0"   WIDTH="16"   HEIGHT="18">  
  <img   name="i468"   SRC="images/icon_book_close.gif"   border="0">法律理论</a><br>  
  </td>  
  </tr>  
  </table>  
  <div   id="a468"   style="display:none">  
  <table   WIDTH="100%"   BORDER="0"   CELLSPACING="0"   CELLPADDING="0">  
  </table>  
  </div>  
  </td>  
  </tr>  
  </table>  
  </div>  
  </body>  
  </html>Top

相关问题

  • 脚本语言中输出的文本大小如何用CSS来控制!
  • 寻找树状结构源码
  • 我应该学哪种脚本语言。
  • 如何禁止脚本语言
  • ASP.NET有几种脚本语言?
  • 默认脚本语言无效
  • 将Delphi作为ASP.NET的脚本语言
  • 将Delphi作为ASP.NET的脚本语言
  • 有没有带复选框的树状菜单的源码或demo
  • 求hash算法的脚本语言实现

关键词

  • .net
  • para
  • rs

得分解答快速导航

  • 帖主:mixiaobo
  • aspczlover

相关链接

  • Web开发类图书

广告也精彩

反馈

请通过下述方式给我们反馈
反馈
提问
网站简介|广告服务|VIP资费标准|银行汇款帐号|网站地图|帮助|联系方式|诚聘英才|English|问题报告
世纪乐知(北京)网络技术有限公司 版权所有, 京 ICP 证 020026 号
北京创新乐知广告有限公司 提供技术支持
Copyright © 2000-2007, CSDN.NET, All Rights Reserved
GongshangLogo