日期:2013-06-12  浏览次数:20942 次

<%@ Language=VBScript %>
<HTML>
<HEAD><Title>故事接龙</Title></HEAD>
<BODY>
<font size=2>
<%
strfilename=server.MapPath("story.txt")
set fsys=server.CreateObject("scripting.filesystemobject")
if not fsys.FileExists(strfilename) then
    fsys.CreateTextFile(strfilename)
    Response.Write "目前还没有发表的文章"
else
    set conlink=server.CreateObject("MSWC.NextLink")
    ith=conlink.GetListCount("story.txt")
    if cint(ith)>0 then
        for i=1 to cint(ith)
            Response.Write  "<a href=" & conlink.GetNthURL("story.txt",i) & "?page=" & i & " target=mainFrame>" & conlink.GetNthDescription("story.txt",i) & "<br>"
        next
    else
    Response.Write "目前还没有发表的文章"
    end if
end if
%>
</font>
</BODY>
</HTML>