瑞丽服饰分页怎么采集啊
以下是代码:<div class="zenwen07 clearkit"><br /></div>
<div style="width:603px;text-align:right; padding:2px 0">
<div style="float:right">
<script>
var totalNum=13;
var nowNum=1;
var pagelist=new Array();
pagelist ="<!CMS_PAGER_LOOP_URL!>";
pagelist ="http://fashion.rayli.com.cn/0002/2008-11-09/L0002010004_338428_1.html";
pagelist ="http://fashion.rayli.com.cn/0002/2008-11-09/L0002010004_338428_2.html";
pagelist ="http://fashion.rayli.com.cn/0002/2008-11-09/L0002010004_338428_3.html";
pagelist ="http://fashion.rayli.com.cn/0002/2008-11-09/L0002010004_338428_4.html";
pagelist ="http://fashion.rayli.com.cn/0002/2008-11-09/L0002010004_338428_5.html";
pagelist ="http://fashion.rayli.com.cn/0002/2008-11-09/L0002010004_338428_6.html";
pagelist ="http://fashion.rayli.com.cn/0002/2008-11-09/L0002010004_338428_7.html";
pagelist ="http://fashion.rayli.com.cn/0002/2008-11-09/L0002010004_338428_8.html";
pagelist ="http://fashion.rayli.com.cn/0002/2008-11-09/L0002010004_338428_9.html";
pagelist ="http://fashion.rayli.com.cn/0002/2008-11-09/L0002010004_338428_10.html";
pagelist ="http://fashion.rayli.com.cn/0002/2008-11-09/L0002010004_338428_11.html";
pagelist ="http://fashion.rayli.com.cn/0002/2008-11-09/L0002010004_338428_12.html";
var loopNum;
if (nowNum<6){
loopNum=(10-nowNum)+1;
}else{
loopNum=6
}
var i=nowNum-4;
if (totalNum!=1){
if (nowNum!=1){
document.write('<div class="nextye"><a href="http://fashion.rayli.com.cn/0002/2008-11-09/L0002010004_338428.html">首页</a> <a href="http://fashion.rayli.com.cn/0002/2008-11-09/L0002010004_338428.html">上一页</a> </div>');
}
document.write('<div class="leftline"><br /></div>');
for (i;i<nowNum;i++){
if((i>0)&&(i<totalNum+1)){
document.write('<div class="offN"><a href="'+pagelist+'">'+i+'</a></div>');
}
}
if((i>0)&&(i<totalNum+1)){
document.write('<div class="nowN">'+nowNum+'</div>');
}
for (i=nowNum+1;i<nowNum+loopNum;i++){
if(i<totalNum+1){
document.write('<div class="offN"><a href="'+pagelist+'">'+i+'</a></div>');
}
}
if (nowNum!=totalNum){
document.write('<div class="nextye"> <a href="http://fashion.rayli.com.cn/0002/2008-11-09/L0002010004_338428_1.html">下一页</a> <a href="http://fashion.rayli.com.cn/0002/2008-11-09/L0002010004_338428_12.html">末页</a> </div>');
}else{
document.write('<div style="width:20px; float:left;"><br /></div>');
}
}
</script>
我采不出来,只能采集几页
页:
[1]