第2123章 深夜来的惊人消息(3 / 5)
){
(&ot;divnavboxto&ot;)hide();
}
});
页面功能引导区
varerreadset=tokie(&ot;erreadset&ot;);
if(!erreadset){
setokie(&ot;erreadset&ot;,1,30);
}
判断背景颜色设置okie是否保存如果存在恢复设置
if(readsetbackground){
if(readsetbackground==&039;rbgcloselight&039;){
(&ot;lilighttxet&ot;)text(&039;开灯&039;);
(&ot;divreaderntaer&ot;)css(&ot;lor&ot;,&ot;666&ot;);
}elseif(readsetbackground==&039;rbgopenlight&039;){
(&ot;lilighttxet&ot;)text(&039;关灯&039;);
(&ot;divreaderntaer&ot;)css(&ot;lor&ot;,&ot;rgb(0,0,0)&ot;);
}
}
判断文本字体大小设置okie是否保存如果存在恢复设置
varreadsetfontsize=tokie(&ot;readsetfontsize&ot;);
if(readsetfontsize){
(&ot;divreaderntaer&ot;)css(&ot;font-size&ot;,readsetfontsize+&ot;px&ot;);
}
判断文本行间距设置okie是否保存如果存在恢复设置
varreadsetleheihgt=tokie(&ot;readsetleheihgt&ot;);
if(readsetleheihgt){
(&ot;divreaderntaer&ot;)css(&ot;le-height&ot;,readsetleheihgt+&ot;px&ot;);
}
减小字体
(&ot;dd&ot;)click(function(){
varfontbody=(&ot;divreaderntaer&ot;)css(&ot;font-size&ot;);
varfontsize=parset(fontbody);
if(fontsize16){
varnefont=eval(fontsize-2);
(&ot;divreaderntaer&ot;)css(&ot;font-size&ot;,nefont+&ot;px&ot;);
(&ot;ddps&ot;)htl(&ot;a+&ot;);
varfontbody=(&ot;divreaderntaer&ot;)css(&ot;font-size&ot;);
varfontsize=parset(fontbody);
if(fontsize==16){
(&ot;dd&ot;)htl(&ot;a&ot;);
}
添加okie记录
setokie(&ot;readsetfontsize&ot;,nefont,30);
}
});
增大字体
(&ot;ddps&ot;)click(function(){
varfontbody=(&ot;divreaderntaer&ot;)css(&ot;font-size&ot;);
varfontsize=parset(fontbody);
if(fontsizea-&ot;);
varfontbody=(&ot;divreaderntaer&ot;)css(&ot;font-size&ot;);
varfontsize=parset(fontbody);
if(fontsize==28){
(&ot;ddps&ot;)htl(&ot;a&ot;);
}
添加okie记录
setoki
↑返回顶部↑