第二百九十二章

})

页面功能引导区

var erreadset = getokie("erreadset")

if(!erreadset){

setokie("erreadset",1,30)

}

判断背景颜色设置 okie是否保存 如果存在恢复设置

if(readsetbackground){

if(readsetbackground == 'rbgcloselight'){

("lilighttxet")text('开灯')

("divreaderntaer")css("lor","666")

}else if(readsetbackground == 'rbgoenlight'){

("lilighttxet")text('关灯')

("divreaderntaer")css("lor","rgb(0, 0, 0)")

}

}

判断文本字体大小设置 okie是否保存 如果存在恢复设置

var readsetfontsize = getokie("readsetfontsize")

if(readsetfontsize){

("divreaderntaer")css("font-size",readsetfontsize+"x")

}

判断文本行间距设置 okie是否保存 如果存在恢复设置

var readsetleheihgt = getokie("readsetleheihgt")

if(readsetleheihgt){

("divreaderntaer")css("le-height",readsetleheihgt+"x")

}

减小字体

("dd")click(function(){

var fontbody = ("divreaderntaer")css("font-size")

var fontsize = arset(fontbody)

if(fontsize 16){

var nefont = eval(fontsize-2)

("divreaderntaer")css("font-size",nefont+"x")

("dds")htl("a+")

var fontbody = ("divreaderntaer")css("font-size")

var fontsize = arset(fontbody)

if(fontsize==16){

("dd")htl("a")

}

添加okie记录

setokie("readsetfontsize",nefont,30)

}

})

增大字体

("dds")click(function(){

var fontbody = ("divreaderntaer")css("font-size")

var fontsize = arset(fontbody)

if(fontsize a-")

var fontbody = ("divreaderntaer")css("font-size")

var fontsize = arset(fontbody)

if(fontsize==28){

("dds")htl("a")

}

添加okie记录

setokie("readsetfontsize",nefont,30)

}

})

行间距设置增大

("hang-xiao")click(function(){

var leheight = ("divreaderntaer")css("le-height")

var leheightnu = arset(leheight)

if(leheightnu 25){

var lehn = eval(leheightnu-4)

("divreaderntaer")css("le-height",lehn+"x")

("hang-da")htl("t+")

var leheight = ("divreaderntaer")css("le-height")

var leheightnu = arset(leheight)

if(leheightnu==22){

("hang-xiao")htl("t")