RSS
热门关键字:  下载  cms  模版  开源  dedecms
当前位置 :| 主页 > 站长学院 > ASP/VbScript >

ASP翻页的实现方法

来源:编程爱好者网站 作者:未知 时间:2006-08-08 Tag: 点击:
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'>></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'><
/td>"  
else  
response.write "<td><a href='list.asp?BoardID="+cstr(boardID)+"&page="
+cstr(k-1)+"'><img src='images/up.gif' border='0'></td>"  
response.write "<td><a href='list.asp?BoardID="+cstr(boardID)+"&page="
+cstr(k+1)+"'><img src='images/down.gif' border='0'></td>"  
end if  
end if  
    end if  
    next  
    response.write "<br>"  
end sub


最新评论共有 0 位网友发表了评论
发表评论
评论内容:不能超过250字,需审核,请自觉遵守互联网相关政策法规。
用户名: 密码:
匿名?
注册
热点关注
相关文章