切换关灯效果
$("div。book_titlexet")。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(){
vartextContent=$(this)。text();
varjquser=getCookie("jieqiUserInfo");
if(textContent==加入书架){
if(!jquser){
。href="";
returnfalse;
}
vararticle_id="130160";
varchapter_id="5884939";
varpage_=pageidth();
varpage_h=pageHeight();
varpage_l=pageLeft();
varpage_t=pageTop();
vardialog_=parseInt(dth);
vardialog_h=parseInt();
vardialog_top=page_t+(page_h2)-(dialog_h2);
if(dialog_top(。+?)","igm");
varcc=(g,"");
varstr=xec(cc)[1];
str=("style="idth:500px;margin-top:150px;"","");
$("#dialog")。css("display","block");
$("#dialog")。css("top",dialog_top);
$("#dialog")。css("left",dialog_left);
$("#dialogCN")。html(str);
}