怎样实现这样的数,急!!!!!!!!分不够再加 老大,你不给你的结构,你的写法,那还不如去faq去找个例子。 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 http://fason.nease.net/samples/treeview/去这里看 fasonhttp://fason.nease.net/samples/xtree/http://fason.nease.net/download/SelectTree.rarmoonpiazzahttp://61.163.246.155/pro/XMLSelTree/http://61.163.246.155/pro/XMLSelTree.rarliuruhong(蓝色街灯)http://blog.heiyou.com/d/newtree.zip <%set conn=server.createobject("ADODB.CONNECTION")connstr="DBQ="+server.mappath("db1.mdb")+";DefaultDir=;DRIVER={Microsoft Access Driver (*.mdb)};"conn.open connstrfunction menu(id)set rs=server.CreateObject("adodb.recordset")sql="select * from menu where id1="&id&" order by url,id"rs.open sql,conn,1,1if rs.recordcount=0 then rs.close set rs=nothing exit functionend ifresponse.write("<table border='0' cellspacing='0' cellpadding='0'>")i=1while not rs.eofif 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 ifrs.movenexti=i+1wendresponse.write("</table>")rs.closeset rs=nothingend function%><html><head><meta http-equiv="Content-Type" content="text/html; charset=gb2312"><title>=========无限级目录树=========http://bbs.asp2004.net</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><meta name="keywords" content="asp2004,树,菜单,无限级"><meta name="author" content="小灰,[email protected]"></head><body><a href="http://bbs.asp2004.net/" target="_blank">http://bbs.asp2004.net/</a>提供最新下载《<a href="menu.asp">管理</a>》<br><%menu 0conn.closeset conn=nothing%></body></html> 如何让html中的下拉框变成只读 解决方法 如何在JAVASCRIPT中修改HTTP登录的密码 用onclick事件改变css,如果一个属性的值有多个,该如何处理? 高分求助,怎么写一个像extjs那样的对话框? [div+css]为什么table被DIV套住之后 就无法定义TD宽度 希望大家来看看这套JavaSctipt组件 如何隐藏表的某一列. 地址栏里如何加标志呀,高手们,帮我呀, 回复窗口 引用了jQuery后,其他的JS不启作用,神马情况。。郁闷啊,,,, 简单问题,在线等,解决结分 请教版主或其他高手:showModalDialog与DIV的冲突的问题
http://fason.nease.net/samples/xtree/
http://fason.nease.net/download/SelectTree.rar
moonpiazza
http://61.163.246.155/pro/XMLSelTree/
http://61.163.246.155/pro/XMLSelTree.rarliuruhong(蓝色街灯)
http://blog.heiyou.com/d/newtree.zip
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://bbs.asp2004.net</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>
<meta name="keywords" content="asp2004,树,菜单,无限级">
<meta name="author" content="小灰,[email protected]">
</head>
<body>
<a href="http://bbs.asp2004.net/" target="_blank">http://bbs.asp2004.net/</a>提供最新下载《<a href="menu.asp">管理</a>》<br>
<%
menu 0
conn.close
set conn=nothing
%>
</body>
</html>