html>
head>
meta http-equiv="Content-Type" content="text/html; charset=gb2312">
title>山水盈盈之Content Linking組件應(yīng)用 /title>
/head>
body>
center> font color=red>Content Linking組件應(yīng)用示范 /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方法逐一將存儲(chǔ)在conlink.txt 文件的URL和文本信息讀出并顯示給客戶端瀏覽器,循環(huán)執(zhí)行.
/ul>
/body>
/html>