怎样做带索引网页

来源:百度知道 编辑:UC知道 时间:2024/06/07 06:30:39
就是一本小说,要在下面添加“上一页”“目录”“下一页”的链接,用微软的fp做的,不想一个一个网页的添加链接,所以想请教高手
真糟糕,就是要用html格式的

如果你的网页是HTM的,那就有点麻烦,如果是ASP的就好办了.
<%
Response.Write"<table width='100%' border='0' cellspacing='0' cellpadding='5' ><tr><td height='20'>每页显示 12个 共有 "&ipagecount&" 页 当前为第 "&ipagecurrent&" 页 "
if ipagecurrent=1 then
Response.Write"首页 | "
else
Response.Write"<a href='type.asp?typeid="&typeid&"&page=1'>首页</a> | "
end if
if ipagecurrent=1 then
Response.Write"上一页 | "
else
Response.Write"<a href='type.asp?typeid="&typeid&"&page="&ipagecurrent-1&"'>上一页</a> | "
end if
if ipagecount>ipagecurrent then
Response.Write"<a href='type.asp?typeid="&typeid&"&page="&ipagecurrent+1&"'>下一页</a> "
else
Response.Write"下一页"
end if
if ipagecount>ipagecurrent t