}
obj = { bookid: articleid ; chapterid: chapterid ; automaticsubscription:automaticsubscriptionvalue} ;
。post/ne/ksuser/subscription/onesubscription ; obj ; fundata{
var msg = ;
msg += ;
msg+= 您已成功订阅:;
msg+= ;
msg+= ;
msg+=
作品名称长安梦
;
msg+=
倾尽天下,生死无话
;
msg+= ;
msg+= 3秒后自动跳转。。。。。。;
msg+= ;
msg+= ;
msg+= ;
var json = data;
request = 。de;
error = 。;
ifrequest == 0{
firminfo{btn:;icocls:;msgcls:firm;message:msg;titlebar:false;useslide:true;autoclose:false;idth:340;height:160};
settimeoutloadvip ; 2000 ;
}else{
alerterror ;
}
};json;
}
fun loadvip{
;
。href = ?aid=157119&cid=4521891 ;
}
fun shorequest{
#subsubmit。attrdisabled ; disabled ;
#subsubmit。attrclass ; butdingyue2 ;
}
fun gevalido{
var imgsrbsp;= /ne/login/vdimgd=+dom;
src;imgsrc
}
// post…submit callback
fun shoresponsexml {
var json = eval+xml+ ;
request = 。de;
error = 。;
ifrequest==0{
url = /artinfo/readvip?aid=157119&cid=+。data。fristchapterid ;
var msg = ;
msg += ;
msg+= ;
msg+= 订阅成功;
msg+= ;
msg+= ;
msg+= ;
msg+= 您已成功订阅长安梦+。+个章节 ;
msg+= ;
msg+= ;
msg+=
查看订阅作品
;
msg+= 3秒后自动跳转。。。。。。;
msg+= ;
msg+= ;
msg+= ;
firminfo{btn:;icocls:;msgcls:firm;message:msg;titlebar:false;useslide:true;autoclose:false;idth:300;height:130};
settimeoutloadread ; 3000 ;
}else{
ifrequest==20106{
。href = /ne/login/shologin#?bookid=157119&chapterid=4521891;
return;
}
alerterror;
}
}
fun shoresponsealljson {
request = 。de;
error = 。;
ifrequest==0{
url = /artinfo/readvip?aid=157119&cid=4521891 ;
var msg = ;
msg += ;
msg+= ;
msg+= 订阅成功;
msg+= ;
msg+= ;
msg+= ;
msg+= 您已成功订阅长安梦 ;
msg+= ;
msg+= ;
msg+=
查看订阅作品
;
msg+= 3秒后自动跳转。。。。。。;
msg+= ;
msg+= ;
msg+= ;
firminfo{btn:;icocls:;msgcls:firm;message:msg;titlebar:false;useslide:true;autoclose:false;idth:300;height:130};
settimeoutloadread ; 3000 ;
}else{
ifrequest==20106{
。href = /ne/login/shologin#?bookid=157119&chapterid=4521891;
return;
}
alerterror;
}
}
fun loadread{
;
。href = url
}
ydon = fun event{
event = ? : event;
try{
if ycode == 13{
if#login。length》0{
ycode = 0;
golocallogin;
}
if#zcbutton。length》0{
ycode = 0;
moblielister;
}
}
}catche{
}
}
fun{
gevalid#captchaimglogin ;//加验证码
//gevalid#captchaimgreg ;
//头部更多显示
#gengduo。mouseoverfun {
#gengduo。attrclass; spmore m2;
#navs1。sho;
};
#gengduo。mouseoutfun {
#gengduo。attrclass; spmore;
#navs1。hide;
};
//头部更多显示end
//头部我的书架
#jilu。mouseoverfun {
#jilu。attrclass; spmore m2;
#navs4。sho;
};
#jilu。mouseoutfun {
#jilu。attrclass; spmore;
#navs4。hide;
};
//头部我的书架end
//头部账号邮箱
#name。mouseoverfun {
#name。attrclass; spmore m2;
#navs3。sho;
};
#name。mouseoutfun {
#name。attrclass; spmore;
#navs3。hide;
};
//头部账号邮箱end
//头部消息
#xiaoxi。mouseoverfun {
#xiaoxi。attrclass; spmore m2;
#navs2。sho;
};
#xiaoxi。mouseoutfun {
#xiaoxi。attrclass; spmore;
#navs2。hide;
};
//头部消息end
var options = {
beforesubmit:shorequest;
success:shoresponse // post…submit
};
#form1。ajaxformoptions;
//返回顶部
#spantop。mouseoverfun {
#spantop。attrclass; spantop2;
};
#spantop。mouseoutfun {
#spantop。attrclass; spantop;
};
#spanbottomouseoverfun {
#spanbottoattrclass; spanbottom2;
};
#spanbottomouseoutfun {
#spanbottoattrclass; spanbottom;
};
#spantop。clickfun {
html; body。animate{ scrolltop: 0 }; 120;
};
#spanbottoclickfun {
broser = dot。height ;
html; body。animate{ scrolltop: broser }; 120;
};
//返回顶部 end
};
fun settabloginm;n{
var tli=byidmenu+getelementsbytagnameli; /*获取选项卡的li对象*/
var mli=byidmain+getelementsbytagnamedl; /*获取主显示区域对象*/
fori=0;i ;
ifsubscription!=1{
html += ;
goldsum = goldsum+parseintprice;
chaptert++ ;
}else{
html += ;
}
html += +n。bookname+ ;
subhtml = ;
if!={
subhtml= 第++章 ;
}
html += +subhtml+name+ ;
html += +ze+ ;
html +=+price+ ;
subhtml = ;
ifsubscription==1{
subhtml= 已订阅;
}else{
subhtml= 未订阅;
}
html +=+subhtml+ ;
html += ;
#chaptermoretable tr:last。afterhtml;
}
};
iftparseint#noegold{
shorequest;
}
}
}
};
bslist。css{height:auto} ;
};
#subsexpandall。liveclick;fun{
loading;
#subsexpandall。dieclick;
bookid = this。attrdata…bookid;
uid = this。attrdata…uid;
。ajax{
type: get;
url: /ne/ksuser/subscriptiochapterlistall;
data: bookid=+bookid;
datatype: json;
success: funsg{
chaptert = 0;
goldsum = 0;
;
if。de != 0
{
alert。;
return false;
}else{
var html = ;
datalen = 。;
// 。each; funi;item{
#chaptermoretable tr:gt0。remove;
。each。data ;funi; n{
//#chaptermoretable 选择书名章节名字数需要看书币订阅状态 ;
html = ;
ifsubscription!=1{
html += ;
goldsum = goldsum+parseintprice;
chaptert++ ;
}else{
html += ;
}
html += +n。bookname+ ;
subhtml = ;
if!={
subhtml= 第++章 ;
}
html += +subhtml+name+ ;
html += +ze+ ;
html +=+price+ ;
subhtml = ;
ifsubscription==1{
subhtml= 已订阅;
}else{
subhtml= 未订阅;
}
html +=+subhtml+ ;
html += ;
#chaptermoretable tr:last。afterhtml;
};
#chaptersumchaptert ;
#goldsumgoldsum ;
#sumegoldgoldsum ;
ifparseint#goldsum》parseint#noegold{
shorequest;
}
#subsexpandall收起章节列表 ;
//bsexpand。csscolor;#ccc;
bsexpand。csscolor;#ccc;
bsexpand。dieclick;
#subsexpandall。dieclick;
#subsexpandall。liveclick;fun{
hiddenchapterall ;
} ;
//#subsexpandall。csscolor;#ccc;
//去掉展开更多章节的提示
page=9999;
}
}
};
bslist。css{height:auto} ;
};
}
//隐藏章节
fun hiddenchapterall{
loading;
settimeouthiddenchapteralltimeout ; 1000 ;
//hiddenchapteralltimeout ;
}
fun hiddenchapteralltimeout{
#chaptermoretable tr:gt4。hide ;
#chaptermoretable tr:gt4 :checkbox。attrchecked;false ;
/*
#chaptermoretable tr:gt0。eachfuni; n{
ifi》3{
this。hide;
}
};
*/
goldsum = 0 ;
chaptert = 0 ;
#chaptermoretable tr:visible。eachfuni; n{
ifthis。children。children:checkbox。attrdisabled==false&&this。children。children:checkbox。attrchecked&&i!=0{
goldsum = goldsum+parseintthis。childrentd:eq4。children;
chaptert++ ;
}
};
#chaptersumchaptert ;
#goldsumgoldsum ;
#sumegoldgoldsum ;
#subsexpandall。dieclick;
#subsexpandall展开全部章节 ;
#subsexpandall。liveclick;fun{
shochapterall ;
} ;
bsexpand。dieclick;
bsexpand。csscolor;#0099ff;
bsexpand。liveclick;fun{
shochaptermore ;
} ;
ifparseint#goldsum3{
ifk》clickmpre{
clickmpre = 9 ;
tnum++ ;
return false;
}
ifthis。is:hidden{
this。sho;
k++ ;
}
}
ifthis。children。children:checkbox。attrdisabled==false{
goldsum = goldsum+parseintthis。childrentd:eq4。children;
this。children。children:checkbox。attrchecked;true ;
chaptert++;
}
};
#chaptersumchaptert ;
#goldsumgoldsum ;
#sumegoldgoldsum ;
ifparseint#goldsum》parseint#noegold{
shorequest;
}
iftnum==1&&k》6||tnum》1&&k3{
this。hide;
}
};
*/
}
//显示章节
fun shochapterall{
loading;
settimeoutshochapteralltimeout ; 1000 ;
}
fun shochapteralltimeout{
#chaptermoretable tr:gt4。sho ;
chaptert = parseint#chaptersum ;
goldsum = parseint#goldsum ;
#chaptermoretable tr:visible。eachfuni; n{
ifthis。children。children:checkbox。attrdisabled==false&&this。children。children:checkbox。attrchecked==false{
this。children。children:checkbox。attrchecked;true ;
goldsum = goldsum+parseintthis。childrentd:eq4。children;
chaptert++ ;
}
};
/*
#chaptermoretable tr:gt0。eachfuni; n{
ifi》3{
this。sho;
}
};
*/
#chaptersumchaptert ;
#goldsumgoldsum ;
#sumegoldgoldsum ;
#subsexpandall。dieclick;
#subsexpandall收起章节列表 ;
#subsexpandall。liveclick;fun{
hiddenchapterall ;
} ;
bsexpand。csscolor;#ccc;
bsexpand。dieclick;
ifparseint#goldsum》parseint#noegold{
shorequest;
}
;
}
fun loading{
var msg = ;
msg += ;
msg+= 请稍等。。。;
msg+= ;
msg+= 请稍等。。。。。。;
msg+= ;
msg+= ;
msg+= ;
firminfo{bt
小提示:按 回车 [Enter] 键 返回书目,按 ← 键 返回上一页, 按 → 键 进入下一页。
赞一下
添加书签加入书架