第一百六十一章 白打VS白打(跪求订阅)(2/2)
var fontbody = $("div#readercontainer").css("font-size");
var fontsize = parseint(fontbody);
if(fontsize==28){
$("#ddplus").html("a");
}
//添加cookie记录
setcookie("readsetfontsize",nefont,30);
}
});
//行间距设置增大
$("#hang-xiao").click(function{
var lineheight = $("div#readercontainer").css("line-height");
var lineheightnum = parseint(lineheight);
if(lineheightnum >25){
var linehn = eval(lineheightnum-4);
$("div#readercontainer").css("line-height",linehn+"px");
$("#hang-da").html("t+");
var lineheight = $("div#readercontainer").css("line-height");
var lineheightnum = parseint(lineheight);
if(lineheightnum==22){
$("#hang-xiao").html("t");
}
//添加cookie记录
setcookie("readsetlineheihgt",linehn,30);
}
});
//行间距设置减小
$("#hang-da").click(function{
var lineheight = $("div#readercontainer").css("line-height");
var lineheightnum = parseint(lineheight);
if(lineheightnum t-");
var lineheight = $("div#readercontainer").css("line-height");
var lineheightnum = parseint(lineheight);
if(lineheightnum==46){
$("#hang-da").html("t");
}
//添加cookie记录
setcookie("readsetlineheihgt",linehn,30);
}
});
//切换阅读背景颜色
$("d_bg dl span").each(function(index,element){
$(this).click(function{
var backcolorvalue = $(this).attr('css');
$("body").removecss;
$("body").addcss(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("jieqiuser");
if(textcontent == '加入书架'){
if(!jquser){
.href="";
return false;
}
var article_id = "136768";
var chapter_id = "6697307";
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 (.+?)","igm");
var =(/\r\n/g,"");
var str = xec[1];
str = ("style=\"idth:500px; margin-top:150px;\"","");
$("#dialog").css("dispy","block");
$("#dialog").css("top",dialog_top);
$("#dialog").css("left",dialog_left);
$("#dialogcn").html(str);
}