共100条 第1页/共10页 首页 上一页 [1][2][3][4][5][6][7][8][9][10] 下10条 下一页 尾页
这个,谁有???我只要这个导航代码,不要分页的,谢谢
我是这么写的。。
If psCount > CInt(psCount) Then
psCount = CInt(psCount) + 1
Else
psCount = CInt(psCount)
End If
PageMin = CurrentPage - 2
PageMax = CurrentPage + 2
If PageMin < 1 Then PageMin = 1
If PageMax < 5 Then PageMax = 5
If PageMax > psCount Then PageMax = psCount
Response.Write("共"& rsCount &"条 "& CurrentPage &"/"& psCount &"页 ")
If CurrentPage > 1 Then
Response.Write("<a href='?PageNo=1'><<</a> ")
Response.Write("<a href='?PageNo="& CurrentPage - 1 &"'><</a> ")
Else
Response.Write("<< ")
Response.Write("< ")
End If
For i = PageMin To PageMax
Response.Write("[<a href='?PageNo="& i &"'>"& i &"</a>] ")
Next
If CurrentPage < psCount Then
Response.Write("<a href='?PageNo="& CurrentPage + 1 &"'>></a> ")
Response.Write("<a href='?PageNo="& psCount &"'>>></a>")
Else
Response.Write("> ")
Response.Write(">>")
End If