第1090章 爷孙谈话(1 / 2)
正在努力加载中...
章评锚点
通栏广告2
小说推荐
小说排行榜|言情小说|玄幻小说|武侠小说|历史小说|都市小说|同人小说|科幻小说|悬疑小说|全本小说|小说推荐|免费小说
永夜君王txt下载
萧鼎作安备 11010502005190号
docunt.write("请求数据加载中...");
//
var currbook = {type:1};
currbook.bookid = '388123'; //"388123";
currbook.chapterid = '34085739'; //"34085739";
currbook.sectionid = '0'; //"";
function savefootprint(count) {
if (!currbook.bookid || currbook.bookid == 0) {
//no book-id, wrong paratter
return;
if (count > 3) {
return;
jquery.ajax({
url: doin.bookhostna + "/ajax/user.footprint.save.do?bookid=388123&chapterid=34085739§ionid=0",
data : currbook,
processdata: false,
datatype: "jsonp",
suess: function(data){
if(data && data.length > 0) {
//suess, do nothing.
} else {
//fail, will try 2 tis. then end
savefootprint(count + 1);
});
jquery(docunt).ready(function() {
var _keyfootprint = 'tefootprint';
if (window.user == null || window.user == undefined) {
if (!currbook.bookid || currbook.bookid == 0 || !currbook.chapterid || currbook.chapterid == 0) {
//no rtion
} else {
//bookid_chapterid_sectionid|
var footprint = cookieutil.getcookie(_keyfootprint);
if (footprint) {
var footprints = footprint.split('|');
var newidx;
var newfootprints = [];
var _start = footprints.length > 10 ? (footprints.length - 9) : 0;
for (newidx = 0; _start < footprints.length; _start++) {
var patt = new regexp(currbook.bookid + '_');
if (patt.test(footprints[_start])) {
//console.debug(currbook.id + '_' + ', value:' + footprints[_start]);
continue;
newfootprints[newidx++] = footprints[_start];
footprint = newfootprints.join('|');
if (footprint) {
footprint += '|';
} else {
footprint = '';
footprint +