<%
If Rs.PageCount > 1 Then
PageName="?Keys="&Keys&urlStr&"&searcheType="&searcheType&"&"
Pagelen=3
If Page>1 Then
Response.Write "
首页"
Response.Write "
上一页"
End If
If Pagelen*2+1 >= Rs.PageCount Then
StartPage=1:EndPage=Rs.PageCount
Else
If Page<=Pagelen+1 Then
StartPage=1
EndPage=Pagelen*2+1
Else
StartPage=Page-Pagelen
EndPage=Page+Pagelen
End If
If Page+Pagelen>Rs.PageCount Then StartPage=Rs.PageCount-Pagelen*2:EndPage=Rs.PageCount
End If
For i = StartPage To EndPage
If i = Page Then
Response.Write "
"&i&""
Else
Response.Write "
"&i&""
End If
Next
If Page
Pagelen Then Response.Write "..."&Rs.PageCount&""
Response.Write "下一页"
Response.Write "尾页"
End If
End If
Rs.close
%>