注册 登录
编程论坛 ASP技术论坛

如何控制"分页函数"代码中文字的大小和颜色?

tepnidh 发布于 2012-02-09 22:23, 609 次点击
<%'分页函数
function showpage(pagecount,pagesize,page,resultcount)
Dim query, a, x, temp
action = "http://" & Request.ServerVariables("HTTP_HOST") & Request.ServerVariables("SCRIPT_NAME")
query = Split(Request.ServerVariables("QUERY_STRING"), "&")
For Each x In query
a = Split(x, "=")
If StrComp(a(0), "page", vbTextCompare)<> 0 Then
temp = temp & a(0) & "=" & a(1) & "&"
End If
Next
Response.Write("<form method=get onsubmit=""document.location = '" & action & "?" & temp & "Page='+this.page.value;return false;"">")
if page<=1 then
Response.Write ("[首页] [上一页] ")
else
Response.Write("[<a href=" & action & "?" & temp & "Page=1 >首页</a>] ")
Response.Write("[<a href=" & action & "?" & temp & "Page=" & (Page-1) & " >上一页</a>] ")
end if

if page>=pagecount then
Response.Write ("[下一页] [尾页]")
else
Response.Write("[<a href=" & action & "?" & temp & "Page=" & (Page+1) & ">下一页</a>] ")
Response.Write("[<a href=" & action & "?" & temp & "Page=" & pagecount & ">尾页</a>]")
end if
Response.Write("[页次:<font color=red>" & page & "</font>/" & pageCount)
Response.Write("] [共" & resultcount & "条 <font color=red>"& pagesize & "</font>条/页]")
Response.Write(" 转到" & "<input name=page size=4 value=" & page & ">" & "页<input type=submit value=go>")
End function
%>
5 回复
#2
tepnidh2012-02-10 11:56
回复 楼主 tepnidh
呵~~~,自己顶一下吧!谢谢!
#3
yms1232012-02-10 12:17
Response.Write("[<a style='font-size:15px;color:red' href=" & action & "?" & temp & "Page=1 >首页</a>] ")
font-size:15px;改变文字大小
color:red改变颜色
#4
tepnidh2012-02-10 14:53
回复 3楼 yms123
多谢yms123老师,试了一下,不知什么原因,死活就是不变!
#5
wangjy5002012-02-10 17:38
CSS
#6
tepnidh2012-02-10 21:20
回复 5楼 wangjy500
谢谢!css也没能好使!之后,我在显示页面中的"页面属性"中改过来了.
1