sub listpage()
if allpages <= 1 then exit sub
if page = 1 then
response.write "<br><font color=#878787>首页 上页</font>"
else
response.write "<br> <a href='"&request.ServerVariables("script_name")&"?page=1'>首页</a> "
response.write " <a href='"&request.ServerVariables("script_name")&"?page="&page-1&"'>上页</a> "
end if
if page = allpages then
response.write "<font color=#878787>下页 末页</font>"
else
response.write " <a href='"&request.ServerVariables("script_name")&"?page="&page+1&"'>下页</a> "
response.write " <a href='"&request.ServerVariables("script_name")&"?page="&allpages&"'>末页</a> "
end if
response.write " 第"&page&"页 共"&allpages&"页 商品总数:"&totalrec& " 每页商品数:"& per_page_num
end sub
就是要在上面的代码里加上一段代码实现,跳转到指定的页面!
就是我们通常见的跳转到第 页
希望高手给你指导!
[此贴子已经被作者于2006-9-9 14:12:40编辑过]