("#hang-xiao").click(fun(){
varli=("div#readertainer").css("li");
varliNum=parseInt(li);
if(liNum>25){
varlineHN=eval(liNum-4);
("div#readertainer").css("li",lineHN+"px");
("#hang-da").html("T+");
varli=("div#readertainer").css("li");
varliNum=parseInt(li);
if(liNum==22){
("#hang-xiao").html("T");
}
//添加cookie记录
setCookie("readsetli",lineHN,30);
}
});
//行间距设置减小
("#hang-da").click(fun(){
varli=("div#readertainer").css("li");
varliNum=parseInt(li);
if(liNumT-");
varli=("div#readertainer").css("li");
varliNum=parseInt(li);
if(liNum==46){
("#hang-da").html("T");
}
//添加cookie记录
setCookie("readsetli",lineHN,30);
}
});
//切换背景颜色
("d_bgdlspan").each(fun(index,element){
(this).click(fun(){
varbackColorValue=(this).attr('css');
("body").removeCss();
("body").addCss(backColorValue);
//添加cookie记录
setCookie("readSetBackground",backColorValue,30);
});
});
//切换关灯效果
("div.book_titlexet").toggle(fun(){
("#qiehuancss").attr('href',"-");
("div#readertainer").css("color","#666");
(".lilighttxet").text('开灯');
//添加cookie记录
setCookie("readSetBackground","rbgcloselight",30);
},fun(){
("#qiehuancss").attr('href',"");
("div#readertainer").css("color","rgb(0,0,0)");
(".lilighttxet").text('关灯');
//添加cookie记录
setCookie("readSetBackground","rbgopenlight",30);
});
("#add_bookcase").click(fun(){
vartexttent=(this).text();
varjquser=getCookie("jieqiUserInfo");
if(texttent=='加入书架'){
if(!jquser){
.href="";
returnfalse;
}
vararticle_id="127607";
varchapter_id="5900652";
varpage_=pageidth();
varpage_h=pageHeight();
varpage_l=pageLeft();
varpage_t=pageTop();
vardialog_=parseInt(dth);
vardialog_h=parseInt();
vardialog_top=page_t+(page_h/2)-(dialog_h/2);
if(dialog_top(.+?)","igm");
varcc=(//g,"");
varstr=xec(cc)[1];
str=("style=\"idth:500px;margin-top:150px;\"","");
("#dialog").css("dispy","block");
("#dialog").css("top",dialog_top);
("#dialog").css("left",dialog_left);
("#dialog").html(str);
}