view.js
来自「二月小说 看小说必备工具 默认的管理路径为:admin/index.as」· JavaScript 代码 · 共 64 行
JS
64 行
function doZoom(size)
{
document.getElementById('zoom').style.fontSize=size+'px';
}
function selectFont()
{
var px = select1[select1.selectedIndex].value;
if (px > 0)
{
document.getElementById('zoom').style.fontSize=px+'px';
var now = new Date();
now.setTime(now.getTime() + 2592000);
var bg = select2[select2.selectedIndex].value;
var font = select1[select1.selectedIndex].value;
if (font==0) font=16;
if (bg=="") bg="#E7F4FE";
document.cookie = "Laos_Book:"+font+"-"+bg+"@;expires="+now.toGMTString()+";path=/";
}
}
function selectBackground()
{
var bg = select2[select2.selectedIndex].value;
if (bg != "")
{
document.getElementById('content').style.background=bg;
var now = new Date();
now.setTime(now.getTime() + 2592000);
var bg = select2[select2.selectedIndex].value;
var font = select1[select1.selectedIndex].value;
if (font==0) font=16;
if (bg=="") bg="#E7F4FE";
document.cookie = "Laos_Book:"+font+"-"+bg+"@;expires="+now.toGMTString()+";path=/";
}
}
function click() {
if (event.button==2) {
if(document.all.auto.status==true){document.all.auto.status=false;alert("自动滚屏已经停止了!")}
scroller();
}
}
document.onmousedown=click
var position = 0;
function scroller() {
if (document.all.auto.status==true){
position++;
scroll(0,position);
clearTimeout(timer);
var timer = setTimeout("scroller()",60);
timer;
}
else{
clearTimeout(timer);
}
}
function MM_callJS(jsStr) { //v2.0
return eval(jsStr)
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?