如何自动更新导航栏?
程序员文章站
2022-03-10 14:17:37
< html> < head> &l...
< html>
< head>
< meta http-equiv="content-type" content="text/html; charset=gb2312">
< title>山水盈盈之content linking组件应用< /title>
< /head>
< body>
< center>< font color=red>content linking组件应用示范< /font>< /center>
< ul>
< %
set link=server.createobject("mswc.nextlink")
lcount=link.getlistcount("conlink.txt")
' 用getlistcount方法确定在conlink.txt中有多少条超链.
dim i
for i=1 to lcount
< li>< a href="< % =link.getnthurl("conlink.txt", i) %>" >
< %=link.getnthdescription("conlink.txt", i) %>< /a>
< % next %>
' 用getnthurl、getnthdescription方法逐一将存储在conlink.txt 文件的url和文本信息读出并显示给客户端浏览器,循环执行.
< /ul>
< /body>
< /html>