$("#hang-xiao")。click(function(){
varlineHeight=$("div#readercontainer")。css("line-height");
varlineHeightNum=parseInt(lineHeight);
if(lineHeightNum>25){
varlineHN=eval(lineHeightNum-4);
$("div#readercontainer")。css("line-height",lineHN+"px");
$("#hang-da")。html("T+");
varlineHeight=$("div#readercontainer")。css("line-height");
varlineHeightNum=parseInt(lineHeight);
if(lineHeightNum==22){
$("#hang-xiao")。html("T");
}
添加cookie记录
setCookie("readsetlineheihgt",lineHN,30);
}
});
行间距设置减小
$("#hang-da")。click(function(){
varlineHeight=$("div#readercontainer")。css("line-height");
varlineHeightNum=parseInt(lineHeight);
if(lineHeightNumT-");
varlineHeight=$("div#readercontainer")。css("line-height");
varlineHeightNum=parseInt(lineHeight);
if(lineHeightNum==46){
$("#hang-da")。html("T");
}
添加cookie记录
setCookie("readsetlineheihgt",lineHN,30);
}
});
切换阅读背景颜色
$("d_bgdlspan")。each(function(index,element){
$(this)。click(function(){
varbackColorValue=$(this)。attr(class);
$("body")。removeClass();
$("body")。addClass(backColorValue);
添加cookie记录
setCookie("readSetBackground",backColorValue,30);
});
});