搜索没找到答案才发的,问题是如何给页码换行?我第一个页已经可以换行了,但是第二页的页码不能换行。
第一个页面正常,其他页面例如第二页开始或任意个页面点击后。都是一横排显示页码了。
只有第一页是每个20个页码换行,其他页面都是一个横排。
为什么会这样呢?是不是点击其他页面的时候,循环代码没有执行呀?
html输出是这样的
这个是第一页
<a href='?Page=20'>20</a><br/><a href='?Page=21'>21</a>
这是其他页
<a href='?Page=20'>20</a><a href='?Page=21'>21</a>
-----------------------------------------------------------------------
dim NUM
NUM=1
for i = page1 to page2
if Pagenews = i then
response.write "<a style='color:#FF3366;' href='?"&PathStr&"Page=" & cstr(i) & "'>" & cstr(i) & "</a>"
else
response.write "<a href='?"&PathStr&"Page=" & cstr(i) & "'>" & cstr(i) & "</a>"
end if
if NUM mod 20=0 then
response.write "<br />"
end if
NUM=NUM+1
next
----------------------------------------------------------------------
希望能得到答复同时解释下方法,谢谢。