网站分页如何做?

来源:百度知道 编辑:UC知道 时间:2024/09/23 19:34:54
在一个网站里 有多个页面 我想做一个分页
如“上一页” “ 下一页” 再搞个下拉框 框里写着:1/9 当我点击下一页时 框里写着:2/9 当我点击上一页时 框里写着:1/9
比如这个网站:http://www.pq520.com 的左边页面<http://pq520.com/list/1_1.html>的上面 一般分页技术要用ASP 是动态的 但是这个网站左边的页面是静态的<.html型的> 这个网站分页代码为
<tr>
<td width="100%" align="center">

上一页 <a href="./1_2.html">下一页</a> <select onchange="window.location.href=this.value"><option value="./1_1.html" class="selected" selected>1</option><option value="./1_2.html">2</option><option value="./1_3.html">3</option><option value="./1_4.html">4</option><option value="./1_5.html">5</option><option value="./1_6.html">6<

你再调试一下。应该可以用的。
Set rc=Server.CreateObject("ADODB.Recordset")
sql="Select * from 表名 order by ID desc"
rc.open sql,conn,1,1
rc.pagesize=15
dim Page
Page =1
if request("Page") <> "" then
Page=cint(request("Page"))
end if
if not rc.eof and not rc.bof then
rc.absolutepage=Page
end if
count=rc.pagesize
%>
<table width="558" border="0" cellspacing="1" cellpadding="0">
<%if rc.bof then%>
<tr align="center">
<td height="50" class="font">暂时没有信息!<font color="#FF608F"> </font></td>
</tr>
<%else%>
<tr>
<td height="25" colspan="2">
<table width="100%" border="0" cellpadding="0" cellspacing="1" bgcol