readnew.asp

来自「ASP+SQL Server动态网站开发从基础到实践教程」· ASP 代码 · 共 30 行

ASP
30
字号
<%@ 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("../chap12") & "/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>

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?