}
});
//切换阅读背景颜色
$("d_bgdlspan").each(function(index,element){
$(this).click(function{
varbackcolorvalue=$(this).attr('class');
$("body").removeclass;
$("body").addclass(backcolorvalue);
//添加cookie记录
setcookie("readsetbackground",backcolorvalue,30);
});
});
//切换关灯效果
$("div.book_titlexet").le(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("jieqiuser");
if(textcontent=='加入书架'){
if(!jquser){
.href="";
returnfalse;
}
vararticle_id="127607";
varchapter_id="5900652";