贝壳电子书 > 都市言情电子书 > 长安梦 >

第131章

长安梦-第131章

小说: 长安梦 字数: 每页4000字

按键盘上方向键 ← 或 → 可快速上下翻页,按键盘上的 Enter 键可回到本书目录页,按键盘上方向键 ↑ 可回到本页顶部!
————未阅读完?加入书签已便下次继续阅读!




    。href = 〃/ne/login/shologin#?bookid=157119&chapterid=4521566〃;

    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';'#0099ff');

    ('bsexpand')。live('click';fun{

    shochaptermore ;

    }) ;

    if(parseint(('#goldsum'))3){

    if(k》clickmpre){

    clickmpre = 9 ;

    tnum++ ;

    return false;

    }

    if((this)。is(〃:hidden〃)){

    (this)。sho;

    k++ ;

    }

    }

    if((this)。children。children(〃:checkbox〃)。attr('disabled')==false){

    goldsum = goldsum+parseint((this)。children('td:eq(4)')。children);

    (this)。children。children(〃:checkbox〃)。attr('checked';true) ;

    chaptert++;

    }

    });

    ('#chaptersum')(chaptert) ;

    ('#goldsum')(goldsum) ;

    ('#sumegold')(goldsum) ;

    if(parseint(('#goldsum'))》parseint(('#noegold'))){

    shorequest;

    }

    if((tnum==1&&k》6)||(tnum》1&&k3){

    (this)。hide;

    }

    });

    */

    }

    //显示章节

    fun shochapterall{

    loading;

    settimeout('shochapteralltimeout' ; 1000) ;

    }

    fun shochapteralltimeout{

    (〃#chaptermoretable tr:gt(4)〃)。sho ;

    chaptert = parseint(('#chaptersum')) ;

    goldsum = parseint(('#goldsum')) ;

    (〃#chaptermoretable tr:visible〃)。each(fun(i; n){

    if((this)。children。children(〃:checkbox〃)。attr('disabled')==false&&(this)。children。children(〃:checkbox〃)。attr('checked')==false){

    (this)。children。children(〃:checkbox〃)。attr('checked';true) ;

    goldsum = goldsum+parseint((this)。children('td:eq(4)')。children);

    chaptert++ ;

    }

    });

    /*

    (〃#chaptermoretable tr:gt(0)〃)。each(fun(i; n){

    if(i》3){

    (this)。sho;

    }

    });

    */

    ('#chaptersum')(chaptert) ;

    ('#goldsum')(goldsum) ;

    ('#sumegold')(goldsum) ;

    (〃#subsexpandall〃)。die(〃clic

返回目录 上一页 下一页 回到顶部 0 0

你可能喜欢的