论坛: 网站建设 标题: 在网页中分页显示? 复制本贴地址    
作者: combook [combook]    论坛用户   登录
如何做,?
有人知道请回哈
代码如何下:
但不我不知道在什么地方加入我自己的东东
<%
sub showpages()
dim n
    if totalAnnounce mod maxannounce=0 then
    n= totalAnnounce \ maxannounce
    else
    n= totalAnnounce \ maxannounce+1
    end if
    dim k
    for k=1 to n
    if k=currentPage then
    if k=1 then
response.write "<td align='center'><a href='list.asp?BoardID="+cstr(bo
ardID)+"&page="+cstr(k+1)+"'><img src='images/down.gif' border='0'></a
></td>"
else
if k=n then
response.write "<td align='center'><a href='list.asp?BoardID="+cstr(bo
ardID)+"&page="+cstr(k-1)+"'><img src='images/up.gif' border='0'></a><
/td>"
else
response.write "<td><a href='list.asp?BoardID="+cstr(boardID)+"&page="
+cstr(k-1)+"'><img src='images/up.gif' border='0'></a></td>"
response.write "<td><a href='list.asp?BoardID="+cstr(boardID)+"&page="
+cstr(k+1)+"'><img src='images/down.gif' border='0'></a></td>"
end if
end if
    end if
    next
    response.write "<br>"
end sub

%>



有人可以给我讲讲吗?
这里面的东东的意思

[此贴被 狂尊(combook) 在 10月13日13时33分 编辑过]


[此贴被 狂尊(combook) 在 10月13日13时19分 编辑过]

地主 发表时间: 10/13 13:04

回复: newekin [newekin]      登录
totalAnnounce,maxannounce,maxannounce 等变量是怎么来的呢?
你不会随便复制一段代码过来,让人帮你修改吧?
那样你就太过分了!

B1层 发表时间: 10/13 15:40

回复: combook [combook]   论坛用户   登录
也可以这样说吧我没有能力把它改好,
只好找大哥大姐帮忙了哟

B2层 发表时间: 10/14 18:24

回复: newekin [newekin]      登录


B3层 发表时间: 10/14 20:28

论坛: 网站建设

20CN网络安全小组版权所有
Copyright © 2000-2010 20CN Security Group. All Rights Reserved.
论坛程序编写:NetDemon

粤ICP备05087286号