如何实现这个效果
http://bd.我的代码
<!--#include file="conn.asp"-->
<style type="text/css">
<!--
.STYLE2 {font-size: 14px}
.xgxw{ font-size:14px;}
.page{
text-align:center;
padding:10px 0px;
font-size:12px;
}
.page .pageon{
padding:0px 10px;
font-weight:bold;
}
.page .pagelink a{
background:#F2F2F2;
border:#ACACAC 1px solid;
padding:3px 6px;
color:#7C7C7C;
margin:0px -1px;
display:inline;
blr:expression(this.onFocus=this.blur());
outline:0;
}
.page .pagelink a.p1{
_padding:3px 6px 1px 6px;
}
.page .pagelink a:hover{
background:#7BC0E7;
padding:3px 6px;
border:#456B9A 1px solid;
color:#010000;
text-decoration:none;
}
-->
</style>
<script type="text/javascript">
functon(){
}
</script>
<%
set rs=server.CreateObject("adodb.recordset")
rs.open "select * from news_aboutus where articleid=2134",conn,3,2
if not rs.eof then
content=rs("content")
end if
rs.close
s="<div style=""page-break-after: always""><span style=""display: none""> </span></div>"
content=replace(content,s,"[NextPage]")
ContentStr=split(content,"[NextPage]")'根据分页标签,将内容保存数组
if request("page")="" then
pagenum=0
else
if cint(request("page"))>cint(ubound(ContentStr)) then
pagenum=ubound(ContentStr)
else
pagenum=request("page")
end if
end if
response.write ContentStr(pagenum)'取出当前页的内容
%>
<table align="center" cellpadding="0" cellspacing="0" border="0">
<tr>
<%
For i = LBound(ContentStr) To UBound(ContentStr)
'response.Write("niaho")
'response.write "<a href='test1.asp?page="&i&"'>["&i+1&"]</a>"
%>
<td><div class="page"><span id="spanid">
<a href='test1.asp?page=<%=i%>'><%=i+1%></a></span> </div></td>
<%
Next
%>
</tr></table>
我这个根据分页标签符来进行分页的但是就是不知道怎么获取页面的页数,来选择样式。就是怎么实现上面的效果。