成人在线你懂的-成人在线免费小视频-成人在线免费网站-成人在线免费视频观看-日韩精品国产一区二区-日韩精品国产一区

掃一掃
關(guān)注微信公眾號

ASP中生成靜態(tài)頁面技術(shù)
2007-03-07   網(wǎng)絡(luò)

<%
dim str
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
str=str+"<table border=´0´ cellspacing=´0´ cellpadding=´0´>"+chr(13)
i=1
while not rs.eof
ChildCount=conn.execute("select count(*) from menu where id1="&rs("id"))(0)
if ChildCount=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=" onMouseUp=change1(´a"&rs("id")&"´,´b"&rs("id")&"´);"
else
menutype="menu1"
listtype="list"
onmouseup=" onMouseUp=change2(´a"&rs("id")&"´,´b"&rs("id")&"´);"
end if
menuname=rs("menuname")
end if
str=str+"<tr><td id=´b"&rs("id")&"´ class=´"&menutype&"´"&onmouseup&">"&menuname&"</td></tr>"+chr(13)
if ChildCount>0 then
str=str+"<tr id=´a"&rs("id")&"´ style=´display:none´><td class=´"&listtype&"´>"+chr(13)
menu(rs("id"))
str=str+"</td></tr>"+chr(13)
end if
rs.movenext
i=i+1
wend
str=str+"</table>"+chr(13)
rs.close
set rs=nothing
end function

menu(0)

set fso=server.CreateObject("scripting.filesystemobject")
set f1=fso.opentextfile(server.MapPath("demo.htm"),2,true)
f1.write("<!DOCTYPE HTML PUBLIC ´-//W3C//DTD HTML 4.01 Transitional//EN´ ´http://www.w3.org/TR/html4/loose.dtd´>")
f1.write("<html>")
f1.write("<head>")
f1.write("<meta http-equiv=´Content-Type´ content=´text/html; charset=gb2312´>")
f1.write("<title>哈哈~~~!這回速度超快了吧?</title>")
f1.write("<meta name=´keywords´ content=´asp2004,樹,菜單,無限級´>")
f1.write("<meta name=´author´ content=´小灰,quxiaohui_0@163.com´>")
f1.write("<link href=´style.css´ rel=´stylesheet´ type=´text/css´>")
f1.write("<script language=´javascript´ src=´function.js´></script>")
f1.write("</head>")
f1.write("<body>")
f1.write("<a href=´http://asp2004.net´ target=´_blank´>http://asp2004.net</a>提供最新下載《<a href=´menu.asp´>管理</a>》<br>")

f1.write(str)

f1.write("</body>")
f1.write("</html>")
f1.close
set fso=nothing

response.Redirect("demo.htm")
%>

熱詞搜索:

上一篇:系統(tǒng)管理和設(shè)備管理
下一篇:湖北電力的選擇

分享到: 收藏
主站蜘蛛池模板: 冯友薇| 李采潭韩国| 小姐电影韩国| spec结| 中医基础理论试题题库及答案| 91精品在线视频播放| 2024年血糖标准| 越南一级毛片免费| 山东教育电视台直播在线观看 | 欲望旅馆| 拔萝卜视频免费完整版| 电影《在云端》| 红海行动2在线观看| 下女们| 名剑风流 电视剧| 蜂鸟演员表| 小镇追凶电影免费观看| 茶山情歌伴奏| 江苏体育频道直播| 乱世伦情 电影| 和平精英捏脸码| 护士韩国电影| 我和我的祖国教案| 国测四年级语文试题| 播放凯登克罗斯演的全部影片| hunger game| 免费看黄网站在线| 黄电影网站| 杨贵妃黄色片| stag| 爱情赏味期| 年轻阿姨的性教育| 电影《exotica》完整版观看| 缝鞋子针法视频| 拨萝卜电视剧视频歌高清在线观看大牛| 爱情三选一| 玫瑰的故事在线看| 恶行之外电影完整在线观看| 戒色视频| 红鞋日记| 同字异音联|