阅读历史 |

第2119章 边城“奇遇”(2 / 4)

加入书签

39;);

(&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记录

setokie(&ot;readsetfontsize&ot;,nefont,30);

}

});

行间距设置增大

(&ot;hang-xiao&ot;)click(function(){

varleheight=(&ot;divreaderntaer&ot;)css(&ot;le-height&ot;);

varleheightnu=parset(leheight);

if(leheightnu25){

varlehn=eval(leheightnu-4);

(&ot;divreaderntaer&ot;)css(&ot;le-height&ot;,lehn+&ot;px&ot;

↑返回顶部↑

书页/目录