六月婷婷综合激情-六月婷婷综合-六月婷婷在线观看-六月婷婷在线-亚洲黄色在线网站-亚洲黄色在线观看网站

明輝手游網中心:是一個免費提供流行視頻軟件教程、在線學習分享的學習平臺!

ASP+ACCESS完成的無限級目錄樹

[摘要]關鍵代碼:<%set conn=server.createobject("ADODB.CONNECTION")connstr="DBQ="+server.mappath("db1.mdb")+";DefaultDir=;D...
 

關鍵代碼:

<%
set conn=server.createobject("ADODB.CONNECTION")
connstr="DBQ="+server.mappath("db1.mdb")+";DefaultDir=;
DRIVER={Microsoft Access Driver (*.mdb)};"
conn.open connstr
function menu(id)
set rs=server.CreateObject("adodb.recordset")
sql="select * from menu where id1="&id&" order by url,id"
rs.open sql,conn,1,1
if rs.recordcount=0 then
 rs.close
 set rs=nothing
 exit function
end if
response.write("<table border='0' cellspacing='0' cellpadding='0'>")
i=1
while not rs.eof
if len(rs("url"))>0 then
 if i=rs.recordcount then
  menutype="file1"
 else
  menutype="file"
 end if
 menuname="<a href='"&rs("url")&"' target='_blank'>"&rs("menuname")&"</a>"
 onmouseup=""
else
 if i=rs.recordcount then
  menutype="menu3"
  listtype="list1"
  onmouseup="with(eval('id"&rs("id")&"'))if(style.display=='')
{style.display='none';this.className='menu3';}else{style.display='';this.className='menu4';}"
 else
  menutype="menu1"
  listtype="list"
  onmouseup="with(eval('id"&rs("id")&"'))if(style.display=='')
{style.display='none';this.className='menu1';}else{style.display='';this.className='menu2';}"
 end if
 menuname=rs("menuname")
end if
%>
  <tr>
    <td class="<%= menutype%>" onMouseUp="<%= onmouseup%>"><%= menuname%></td>
  </tr>
<%if len(rs("url"))<3 then%>
  <tr id="id<%= rs("id")%>" style="display:none">
    <td class="<%= listtype%>"><%menu(rs("id"))%></td>
  </tr>
<%
end if
rs.movenext
i=i+1
wend
response.write("</table>")
rs.close
set rs=nothing
end function
%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>=========無限級目錄樹=========http://www.knowsky.com</title>
<style type="text/css">
<!--
.menu1 {
 background-image: url(folder1.gif);
 background-repeat: no-repeat;
 height: 17px;
 left: 32px;
 padding-left: 32px;
 cursor: hand;
}
.menu2 {
 background-image: url(folder2.gif);
 background-repeat: no-repeat;
 height: 17px;
 left: 32px;
 padding-left: 32px;
 cursor: hand;
}
.menu3 {
 background-image: url(folder3.gif);
 background-repeat: no-repeat;
 height: 17px;
 left: 32px;
 padding-left: 32px;
 cursor: hand;
}
.menu4 {
 background-image: url(folder4.gif);
 background-repeat: no-repeat;
 height: 17px;
 left: 32px;
 padding-left: 32px;
 cursor: hand;
}
.list {
 padding-left: 20px;
 background-image: url(list.gif);
 background-repeat: repeat-y;
}
.list1 {
 padding-left: 20px;
}
.file {
 background-image: url(file.gif);
 background-repeat: no-repeat;
 height: 16px;
 cursor: hand;
 padding-left: 32px;
}
.file1 {
 background-image: url(file1.gif);
 background-repeat: no-repeat;
 height: 16px;
 cursor: hand;
 padding-left: 32px;
}
body {
 font-size: 9pt;
 color: #000000;
 background-color: #FFFFFF;
}
a:link {
 font-size: 9pt;
 color: #000000;
 text-decoration: none;
}
a:visited {
 font-size: 9pt;
 color: #000000;
 text-decoration: none;
}
a:hover {
 font-size: 9pt;
 color: #0000FF;
 text-decoration: none;
 position: relative;
 right: 1px;
 bottom: 1px;
}
a:active {
 font-size: 9pt;
 color: #000000;
 text-decoration: none;
}
-->
</style>
</head>
<body>
<a target="_blank">http://www.domain.com/</a>
提供最新下載《<a href="menu.asp">管理</a>》<br>
<%
menu 0
conn.close
set conn=nothing
%>
</body>
</html>





主站蜘蛛池模板: 在线免费色 | 青青草国产免费久久久下载 | 天天色天天干天天射 | 婷婷免费在线 | 亚洲a成人7777777久久 | 三级黄色片日韩 | 欧洲视频一区 | 香港全黄一级毛片在线播放 | 日夜啪| 日韩精品亚洲一级在线观看 | 日韩推理片在线免费看网站 | 日韩成片 | 日本v片免费一区二区三区 日本vs欧美一区二区三区 | 亚洲视频免费在线 | 中文字幕不卡免费视频 | 日韩亚洲欧美日本精品va | 午夜性伦鲁啊鲁免费视频 | 欧美一级免费观看 | 亚洲福利精品一区二区三区 | 综合图区亚洲 | 日韩一卡2卡3卡新区网站 | 青娱乐啪啪 | 日本一本在线 | 无声在线完整版免费观看 | 青青草原影视 | 日韩在线视频免费播放 | 日韩精品亚洲人成在线观看 | 全国男人的天堂天堂网 | 青草免费在线 | 婷婷综合缴情亚洲狠狠图片 | 一级做a爰片性色毛片思念网 | 日本欧美激情 | 四虎精品影院永久在线播放 | 伊人手机在线观看 | 亚洲第一黄网 | 欧美在线一| 欧美特一级 | 日韩在线专区 | 天天曰曰 | 热久久国产欧美一区二区精品 | 欲香欲色|