火车采集器软件交流官方论坛

 找回密码
 加入会员
搜索
火车采集器V9版免费下载火车浏览器 - 可视采集,万能群发,全自动脚本工具
查看: 2725|回复: 1

求助 这样的分页有办法采吗 标题还要长一点。。。。。。。。。。

[复制链接]
发表于 2009-10-3 17:42:35 | 显示全部楼层 |阅读模式
本帖最后由 bgmqmj 于 2009-10-3 22:52 编辑

20支付宝 求解决办法
分页区


&#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; <center>
&#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; <a href='javascript:dfirstPlay();' class='c1'>首&#160;&#160;页</a>

&#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; <a href='javascript:dPlayPre();' class='c1'>上一张</a>

&#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; <a href='javascript:dPlayNext();' class='c1'>下一张</a>

&#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; <a href='javascript:dweiPlay();' class='c1'>尾&#160;&#160;页</a>

&#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; <a href='javascript:dPlayBig();' class='c1'>原始图片</a>

&#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; </center>






javascript

&#160; &#160; &#160; &#160; //下一张
&#160; &#160; &#160; &#160; function dPlayNext()
&#160; &#160; &#160; &#160; {
&#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; if(npage==totalpage) { alert("没有了哦"); }
&#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; else
&#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; {
&#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; if(displaytype=='st' && namehand!='') location.href = namehand+"_"+(npage+1)+shortname;
&#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; else location.href = "view.php?aid=1316&pageno="+(npage+1);
&#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; }
&#160; &#160; &#160; &#160; }
&#160; &#160; &#160; &#160; window.onload=function (){&#160; &#160; &#160; &#160;
&#160; &#160; &#160; &#160;&#160; &#160;maxwidth=980;
&#160; &#160; &#160; &#160;&#160; &#160;imgid = document.getElementById("bigimg");
&#160; &#160; &#160; &#160;&#160; &#160;imgid.width = (imgid.width>maxwidth ? maxwidth : imgid.width);
&#160;&#160;}
&#160; &#160;&#160; &#160;function ToPage(event){
&#160; &#160;&#160; &#160;&#160;&#160;event = event ? event : (window.event ? window.event : null);
&#160; &#160;&#160; &#160;&#160;&#160;if (event.keyCode==37) location=namehand+"_"+(npage-1)+shortname;
&#160; &#160;&#160; &#160;&#160; &#160;&#160; &#160;if (event.keyCode==39) location=namehand+"_"+(npage+1)+shortname;
&#160; &#160;&#160; &#160;&#160; &#160;&#160; &#160;&#160;&#160;}

多谢
 楼主| 发表于 2009-10-3 17:52:28 | 显示全部楼层
总页数totalpage 和当前页数npage 在页面上能找到
  var npage = 4;
var totalpage = 8;
高手帮帮我啊
您需要登录后才可以回帖 登录 | 加入会员

本版积分规则

QQ|手机版|Archiver|火车采集器官方站 ( 皖ICP备06000549 )

GMT+8, 2025-5-19 17:02

Powered by Discuz! X3.4

Copyright © 2001-2020, Tencent Cloud.

快速回复 返回顶部 返回列表