28读书 » 武侠修真 » 在中原行镖的日子 » 第329章你还有什么遗言?

第329章你还有什么遗言?(5 / 6)

//

varcurrbook={type:1};

currbook.bookid='540657';//"540657";

currbook.chapterid='34085536';//"34085536";

currbook.sectionid='0';//"";

functionsavefootprint(count){

if(!currbook.bookidurrbook.bookid==0){

//nobook-id,wrongparametter

return;

}

if(count>3){

return;

}

jquery.ajax({

url:domain.bookhostname+"/ajax/user.footprint.save.do?bookid=540657&chapterid=34085536&sectionid=0",

data:currbook,

processdata:false,

datatype:"jsonp",

ess:function(data){

if(data&&data.length>0){

//ess,donothing.

}else{

//fail,willtry2times.thenend

savefootprint(count+1);

}

}

});

}

jquery(docu(){

var_keyfootprint='tempfootprint';

if(window.user==nulldow.user==undefined){

if(!currbook.bookidurrbook.bookid==0urrbook.chapteridurrbook.chapterid==0){

//noinformation

}else{

//bookid_chapterid_sectionid|

varfootprint=cookieutil.getcookie(_keyfootprint);

if(footprint){

varfootprints=footprint.split('|');

varnewidx;

varnewfootprints=[];

var_start=footprints.length>10?(footprints.length-9):0;

for(newidx=0;_start<footprints.length;_start++){

varpatt=newregexp(currbook.bookid+'_');

if(patt.test(footprints[_start])){

//console.debug(currbook.id+'_'+',value:'+footprints[_start]);

continue;

}

newfootprints[newidx++]=footprints[_start];

}

footprint=newfootprints.join('|');

举报本章错误