第二千零七十二章 拦住他(2 / 2)

残龙谱 浪子边城 5116 字 2022-11-03

    }

    });

    //增大字体

    $("#ddplus").click(function(){

    var fontbody = $("div#readercontainer").css("font-size");

    var fontsize = parseInt(fontbody);

    if(fontsize A-");

    var fontbody = $("div#readercontainer").css("font-size");

    var fontsize = parseInt(fontbody);

    if(fontsize==28){

    $("#ddplus").ht("A");

    }

    //添加cookie记录

    setCookie("readsetfontsize",nefont,30);

    }

    });

    //行间距设置增大

    $("#hang-xiao").click(function(){

    var lineHeight =  $("div#readercontainer").css("line-height");

    var lineHeightNu= parseInt(lineHeight);

    if(lineHeightNu>25){

    var lineHN = eval(lineHeightNu4);

    $("div#readercontainer").css("line-height",lineHN+"px");

    $("#hang-da").ht("T+");

    var lineHeight =  $("div#readercontainer").css("line-height");

    var lineHeightNu= parseInt(lineHeight);

    if(lineHeightNu=22){

    $("#hang-xiao").ht("T");

    }

    //添加cookie记录

    setCookie("readsetlineheihgt",lineHN,30);

    }

    });

    //行间距设置减小

    $("#hang-da").click(function(){

    var lineHeight =  $("div#readercontainer").css("line-height");

    var lineHeightNu= parseInt(lineHeight);

    if(lineHeightNuT-");

    var lineHeight =  $("div#readercontainer").css("line-height");

    var lineHeightNu= parseInt(lineHeight);

    if(lineHeightNu=46){

    $("#hang-da").ht("T");

    }

    //添加cookie记录

    setCookie("readsetlineheihgt",lineHN,30);

    }

    });

    //切换阅读背景颜色

    $("d_bg dl span").each(function(index,elent){

    $(this).click(function(){

    var backColorValue = $(this).attr('class');

    $("body").reveClass();

    $("body").addClass(backColorValue);

    //添加cookie记录

    setCookie("readSetBackground",backColorValue,30);

    });

    });

    //切换关灯效果

    $("div.book_title xet").toggle(function(){

    $("#qiehuancss").attr('href',"-");

    $("div#readercontainer").css("color","#666");

    $(".lilighttxet").text('开灯');

    //添加cookie记录

    setCookie("readSetBackground","rbgcloselight",30);

    },function(){

    $("#qiehuancss").attr('href',"");

    $("div#readercontainer").css("color","rgb(0, 0, 0)");

    $(".lilighttxet").text('关灯');

    //添加cookie记录

    setCookie("readSetBackground","rbgopenlight",30);

    });

    $("#add_bookcase").click(function(){

    var textContent = $(this).text();

    var jquser = getCookie("jieqiUserInfo");

    if(textContent == '加入书架'){

    if(!jquser){

    .href="";

    return false;

    }

    var article_id = "138803";

    var chapter_id = "8594233";

    var page_ = pageidth();

    var page_h = pageHeight();

    var page_l = pageLeft();

    var page_t = pageTop();

    var dialog_ = parseInt(dth);

    var dialog_h = parseInt();

    var dialog_top = page_t + (page_h / 2) - (dialog_h / 2);

    if(dialog_top (.+?)","ig);

    var=(/\r\n/g,"");

    var str = xec)[1];

    str = ("style=\"idth:500px; rgin-top:150px;\"","");

    $("#dialog").css("display","block");

    $("#dialog").css("top",dialog_top);

    $("#dialog").css("left",dialog_left);

    $("#dialogCN").ht(str);

    }

推荐都市大神老施新书: