故事接龙5 readnew.asp
<%@ Language=VBScript %><HTML>
<HEAD>
<META NAME="GENERATOR" Content="Microsoft Visual Studio 6.0">
</HEAD>
<BODY>
<FORM action="handlevote.asp" target=mainFrame method=post id=form1 name=form1>
<%
Response.Write "阅读新章节<HR>"
set conlink=server.CreateObject("MSWC.NextLink")
set fsys=server.CreateObject("scripting.filesystemobject")
if fsys.FileExists(server.MapPath("/project4_local") & "/new1/new.txt") then
ith=conlink.GetListCount("new1/new.txt")
for i=1 to cint(ith)
Response.Write "<INPUT id=radio name=voteradio value=newchapter" & i & ".html type=radio>"
Response.Write "<a href=" & conlink.GetNthURL("new1/new.txt",i) & "?page=" & i & " target=mainFrame>" & conlink.GetNthDescription("new1/new.txt",i) & "<a><br>"
next
else
Response.Write "目前还没有新文章"
end if
%>
<P></P>
<INPUT type="submit" value="投票" id=submit1 name=submit1>
加入你的评论意见
<P><TEXTAREA id=TEXTAREA1 name=votecomment style="HEIGHT: 100px; WIDTH: 90%">
</TEXTAREA></P>
</FORM>
</BODY>
</HTML>
补充:asp教程,高级应用