![]() |
![]() |
![]() |
![]() |
![]() ![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() ![]() |
供应求购 | 免费商铺 | 商业资讯 | 库存二手 | 黄页大全 | 生活贴吧 | 房屋租售 | 招聘求职 | 婚恋交友 | 自助广告 |
asp精仿百度分页函数代码 | ||
发布时间:2010/10/17 15:23:32 发布人:网络游民 点击:693 | ||
关键词:仿百度分页,仿百度分页代码,asp仿百度分页,asp仿百度分页代码
<% function listpage(pagesum,page,actcs) 'pagesum 总页数 'page 当前页码 'actcs为连接参数 比如:&a=1&b=2 if cint(page)>=10 then ks=page-4 js=page+5 if ks<1 then ks=1 js=ks+9 end if if js>cint(pagesum) then js=pagesum ks=js-9 end if else if cint(pagesum)>11 then ks=1 js=10 else ks=1 js=pagesum end if end if if page>1 then response.Write("<a href='?CurPage=1"&actcs&"'>首页</a> <a href='?CurPage="& page-1 & actcs& "'>上一页</a> ") else response.Write("首页 上一页 ") end if for i= ks to js if cint(i)=cint(page) then response.write "<font color=#6593BF>"&i&"</font> " else response.write "<a href=?id="&id&"&CurPage="&i&"><font color=#ffffff>"&i&"</font></a>" end if next if cint(page)<cint(pagesum) then response.Write("<a href='?CurPage="& page+1 & actcs & "'>下一页</a> <a href='?CurPage="& pagesum & actcs & "'>尾页</a> ") else response.Write("下一页 尾页 ") end if end function %> |
||
![]() |
![]() |
![]() |
※ | 发布回复 | ↓请遵循123发布网同城生活贴吧/论坛发帖规则;↓寻一夜情、包养、招嫖类信息的一律全部删除,并报公安备案↓ | |
|
![]() |
![]() |
网站首页 | 关于我们 | 广告业务 | 关于VIP | 免责声明 | 联系我们 | 设为首页 | 加入收藏 | 意见反馈 | 网站建设 |
123发布网 版权所有 www.123fbw.com 联系电话:18331151646 QQ:1016964448
CopyRight © 2007-2016 All Right Reserved 联系站长 津ICP备10002728号 统计: |