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

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

帮我看看这个分页应该怎样采集,感激不尽....

[复制链接]
发表于 2010-6-4 14:25:13 | 显示全部楼层 |阅读模式
具体内容页见:http://ent.cqnews.net/ylove/201006/t20100604_4375815_8.htm

帮我看看这个分页应该怎样采集,感激不尽....
  1.    <div style=" padding-top:5px; padding-bottom:5px;">
  2.             <SCRIPT LANGUAGE="JavaScript">
  3. <!--
  4. function createPageHTML(_nPageCount, _nCurrIndex, _sPageName, _sPageExt){
  5.         if(_nPageCount == null || _nPageCount<=1){
  6.                 return;
  7.         }

  8.         var nCurrIndex = _nCurrIndex || 0;
  9.         if(nCurrIndex == 0)
  10.                 {document.write("[1]&nbsp;");}
  11.         if(nCurrIndex == 1){
  12.             document.write("<a class='page_class' href=""+_sPageName+"."+_sPageExt+""><img src='../../images/W020090708848649988387.gif' title='查看上一页' width='69' height='21'></a>&nbsp;");
  13.                 document.write("<a href=""+_sPageName+"."+_sPageExt+"">[1]</a>&nbsp;");
  14.        }
  15.          if(nCurrIndex > 1){
  16.          document.write("<a class='page_class' href=""+_sPageName+"_" + (nCurrIndex - 1) + "."+_sPageExt+"">"+"<img src='../../images/W020090708848649988387.gif' title='查看上一页' width='69' height='21'>"+"</a>&nbsp;");
  17.          document.write("<a href=""+_sPageName+"."+_sPageExt+"">[1]</a>&nbsp;");
  18.           }
  19.         for(var i=1; i<_nPageCount; i++){
  20.                 if(nCurrIndex == i)
  21.                         document.write("[" + (i+1) + "]" + "&nbsp;");
  22.                 else if(i == 16)
  23.                     document.write("<br><a href=""+_sPageName+"_" + i + "."+_sPageExt+"">"+"["+(i+1)+"]"+"</a>&nbsp;")
  24.                 else if(i == 32)
  25.                     document.write("<br><a href=""+_sPageName+"_" + i + "."+_sPageExt+"">"+"["+(i+1)+"]"+"</a>&nbsp;")
  26.                 else       
  27.                         document.write("<a href=""+_sPageName+"_" + i + "."+_sPageExt+"">"+"["+(i+1)+"]"+"</a>&nbsp;");
  28.         }
  29.         if(nCurrIndex<_nPageCount-1){
  30.           document.write("<a class='page_class2' href=""+_sPageName+"_" + (nCurrIndex+1) + "."+_sPageExt+"">"+"<img src='../../images/W020090708848649985441.gif' title='查看下一页' width='69' height='21'>"+"</a>&nbsp;");
  31.         }
  32.         if(nCurrIndex==_nPageCount-1){
  33.           document.write("<a class='page_class3' href=""+_sPageName+"."+_sPageExt+""><img src='../../images/W020090709364971077733.gif' title='返回首页' width='69' height='21'></a>&nbsp;");
  34.         }
  35. }       
  36. //WCM置标
  37. createPageHTML(9, 8, "t20100604_4375815", "htm");       
  38. //-->
  39. </SCRIPT>
复制代码
您需要登录后才可以回帖 登录 | 加入会员

本版积分规则

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

GMT+8, 2025-7-13 14:13

Powered by Discuz! X3.4

Copyright © 2001-2020, Tencent Cloud.

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