按键盘上方向键 ← 或 → 可快速上下翻页,按键盘上的 Enter 键可回到本书目录页,按键盘上方向键 ↑ 可回到本页顶部!
————未阅读完?加入书签已便下次继续阅读!
}
obj = { bookid: articleid ; chapterid: chapterid ; automaticsubscription:automaticsubscriptionvalue} ;
。post(〃/ne/ksuser/subscription/onesubscription〃 ; obj ; fun(data){
var msg = '';
msg += '';
msg+= '您已成功订阅:';
msg+= ' ';
msg+= '';
msg+= '
作品名称长安梦
';
msg+= '
三世痴缠来生度
';
msg+= '';
msg+= ' 3秒后自动跳转。。。。。。';
msg+= '';
msg+= '';
msg+= '';
var json = data;
request = 。de;
error = 。;
if(request == 0){
firminfo({btn:'';icocls:'';msgcls:'firm';message:msg;titlebar:false;useslide:true;autoclose:false;idth:340;height:160});
settimeout('loadvip' ; 2000) ;
}else{
alert(error) ;
}
};〃json〃);
}
fun loadvip{
;
。href = 〃?aid=157119&cid=4518704〃 ;
}
fun shorequest{
('#subsubmit')。attr('disabled' ; 'disabled') ;
('#subsubmit')。attr('class' ; 'butdingyue2') ;
}
fun gevalid(o){
var imgsrbsp;= '/ne/login/vdimgd='+dom;
(〃src〃;imgsrc)
}
// post…submit callback
fun shoresponse(xml) {
var json = eval('('+xml+')') ;
request = 。de;
error = 。;
if(request==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});
settimeout('loadread' ; 3000) ;
}else{
if(request=='20106'){
。href = 〃/ne/login/shologin#?bookid=157119&chapterid=4518704〃;
return;
}
alert(error);
}
}
fun shoresponseall(json) {
request = 。de;
error = 。;
if(request==0){
url = 〃/artinfo/readvip?aid=157119&cid=4518704〃 ;
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});
settimeout('loadread' ; 3000) ;
}else{
if(request=='20106'){
。href = 〃/ne/login/shologin#?bookid=157119&chapterid=4518704〃;
return;
}
alert(error);
}
}
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;
}
}
}catch(e){
}
}
(fun{
gevalid(('#captchaimglogin')) ;//加验证码
//gevalid(('#captchaimgreg')) ;
//头部更多显示
('#gengduo')。mouseover(fun {
(〃#gengduo〃)。attr('class'; 'spmore m2');
(〃#navs1〃)。sho;
});
('#gengduo')。mouseout(fun {
(〃#gengduo〃)。attr('class'; 'spmore');
(〃#navs1〃)。hide;
});
//头部更多显示end
//头部我的书架
('#jilu')。mouseover(fun {
(〃#jilu〃)。attr('class'; 'spmore m2');
(〃#navs4〃)。sho;
});
('#jilu')。mouseout(fun {
(〃#jilu〃)。attr('class'; 'spmore');
(〃#navs4〃)。hide;
});
//头部我的书架end
//头部账号(邮箱)
('#name')。mouseover(fun {
(〃#name〃)。attr('class'; 'spmore m2');
(〃#navs3〃)。sho;
});
('#name')。mouseout(fun {
(〃#name〃)。attr('class'; 'spmore');
(〃#navs3〃)。hide;
});
//头部账号(邮箱)end
//头部消息
('#xiaoxi')。mouseover(fun {
(〃#xiaoxi〃)。attr('class'; 'spmore m2');
(〃#navs2〃)。sho;
});
('#xiaoxi')。mouseout(fun {
(〃#xiaoxi〃)。attr('class'; 'spmore');
(〃#navs2〃)。hide;
});
//头部消息end
var options = {
beforesubmit:shorequest;
success:shoresponse // post…submit
};
('#form1')。ajaxform(options);
//返回顶部
('#spantop')。mouseover(fun {
(〃#spantop〃)。attr('class'; 'spantop2');
});
('#spantop')。mouseout(fun {
(〃#spantop〃)。attr('class'; 'spantop');
});
('#spanbottom')。mouseover(fun {
(〃#spanbottom〃)。attr('class'; 'spanbottom2');
});
('#spanbottom')。mouseout(fun {
(〃#spanbottom〃)。attr('class'; 'spanbottom');
});
('#spantop')。click(fun {
(〃html; body〃)。animate({ scrolltop: 0 }; 120);
});
('#spanbottom')。click(fun {
broser = (dot)。height ;
(〃html; body〃)。animate({ scrolltop: broser }; 120);
});
//返回顶部 end
});
fun settablogin(m;n){
var tli=byid(〃menu〃+m)。getelementsbytagname(〃li〃); /*获取选项卡的li对象*/
var mli=byid(〃main〃+m)。getelementsbytagname(〃dl〃); /*获取主显示区域对象*/
for(i=0;i' ;
if(subscription!=1){
html +=' ' ;
goldsum = goldsum+parseint(price);
chaptert++ ;
}else{
html +=' ';
}
html +=' '+n。bookname+'' ;
subhtml ='' ;
if(!=''){
subhtml= '第'++'章 ';
}
html +=' '+subhtml+name+'' ;
html +=' '+ze+'' ;
html +=''+price+'' ;
subhtml ='' ;
if(subscription==1){
subhtml= '已订阅';
}else{
subhtml= '未订阅';
}
html +=''+subhtml+'' ;
html +='' ;
(〃#chaptermoretable tr:last〃)。after(html);
}
});
if(tparseint(('#noegold'))){
shorequest;
}
}
}
});
(〃bslist〃)。css({height:〃auto〃}) ;
});
(〃#subsexpandall〃)。live(〃click〃;fun{
loading;
(〃#subsexpandall〃)。die(〃click〃);
bookid = (this)。attr('data…bookid');
uid = (this)。attr('data…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(; fun(i;item){
(〃#chaptermoretable tr:gt(0)〃)。remove;
。each(。data ;fun(i; n){
//(〃#chaptermoretable〃)(' 选择书名章节名字数需要看书币订阅状态') ;
html = ' ' ;
if(subscription!=1){
html +=' ' ;
goldsum = goldsum+parseint(price);
chaptert++ ;
}else{
html +=' ';
}
html +=' '+n。bookname+'' ;
subhtml ='' ;
if(!=''){
subhtml= '第'++'章 ';
}
html +=' '+subhtml+name+'' ;
html +=' '+ze+'' ;
html +=''+price+'' ;
subhtml ='' ;
if(subscription==1){
subhtml= '已订阅';
}else{
subhtml= '未订阅';
}
html +=''+subhtml+'' ;
html +='' ;
(〃#chaptermoretable tr:last〃)。after(html);
});
('#chaptersum')(chaptert) ;
('#goldsum')(goldsum) ;
('#sumegold')(goldsum) ;
if(parseint(('#goldsum'))》parseint(('#noegold'))){
shorequest;
}
('#subsexpandall')('收起章节列表') ;
//('bsexpand')。css('color';'#ccc');
('bsexpand')。css('color';'#ccc');
(〃bsexpand〃)。die(〃click〃);
(〃#subsexpandall〃)。die(〃click〃);
('#subsexpandall')。live('click';fun{
hiddenchapterall ;
}) ;
//('#subsexpandall')。css('color';'#ccc');
//去掉展开更多章节的提示
page=9999;
}
}
});
(〃bslist〃)。css({height:〃auto〃}) ;
});
})
//隐藏章节
fun hiddenchapterall{
loading;
settimeout('hiddenchapteralltimeout' ; 1000) ;
//hiddenchapteralltimeout ;
}
fun hiddenchapteralltimeout{
(〃#chaptermoretable tr:gt(4)〃)。hide ;
(〃#chaptermoretable tr:gt(4) :checkbox〃)。attr('checked';false) ;
/*
(〃#chaptermoretable tr:gt(0)〃)。each(fun(i; n){
if(i》3){
(this)。hide;
}
});
*/
goldsum = 0 ;
chaptert = 0 ;
(〃#chaptermoretable tr:visible〃)。each(fun(i; n){
if((this)。children。children(〃:checkbox〃)。attr('disabled')==false&&(this)。children。children(〃:checkbox〃)。attr('checked')&&i!=0){
goldsum = goldsum+parseint((this)。children('td:eq(4)')。children);
chaptert++ ;
}
});
('#chaptersum')(chaptert) ;
('#goldsum')(goldsum) ;
('#sumegold')(goldsum) ;
(〃#subsexpandall〃)。die(〃click〃);
('#subsexpandall')('展开全部章节') ;
('#subsexpandall')。live('click';fun{
shochapterall ;
}) ;
(〃bsexpand〃)。die(〃click〃);
('bsexpand')。css('color';'#0099