📄 fun_script.js
字号:
//URL的跳转
function gotourl(url,sname,swidth,sheight,top,left,sreplace,sclose)
{
var objNewWin;
if (swidth=="") swidth = "494";
if (sheight=="") sheight = "351";
if (top=="") top = "200";
if (left=="") left = "200";
if (sreplace=="") sreplace = false;
if (sclose=="") sclose = false;
objNewWin = window.open(url,sname,"fullscreen=0,toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,resizable=0,maximizeButton=0,width=" + swidth + ",height=" + sheight + ",top="+top+",left="+left,sreplace);
if (sclose) window.close();
objNewWin.focus();
}
//屏蔽用户按键
function CancelKey()
{
if ((event.keyCode==116)|| //屏蔽 F5 刷新键
(event.ctrlKey && event.keyCode==82)) //屏蔽Ctrl + R
{
event.keyCode=0;event.returnValue=false;
}
if ((event.ctrlKey)&&(event.keyCode==78)) //屏蔽 Ctrl+n
{
event.keyCode=0; event.returnValue=false;
}
}
function popdialog(url,swidth,sheight){
if (swidth=="") swidth = "280";
if (sheight=="") swidth = "180";
var sValue = showModalDialog(url,"","dialogWidth:" + swidth + ";status:no;dialogHeight:" + sheight);
return sValue;
}
function TB_animateWindow(windowWidth,windowHeight,targetWidth,targetHeight,widthMod,heightMod,fullScreen)
{
if (fullScreen)
{
targetWidth = screen.availWidth;
targetHeight = screen.availHeight;
}
if (windowWidth < targetWidth) windowWidth += widthMod;
if (windowHeight < targetHeight) windowHeight += heightMod;
windowLeft = (screen.availWidth / 2) - (windowWidth / 2);
windowTop = (screen.availHeight / 2) - (windowHeight / 2);
//top.window.resizeTo(targetWidth,targetHeight);
top.window.resizeTo(windowWidth,windowHeight);
top.window.moveTo(windowLeft,windowTop);
//top.window.moveTo(0,0);
if (windowWidth < targetWidth || windowHeight < targetHeight)
setTimeout('TB_animateWindow(' + windowWidth + ', ' + windowHeight + ', ' + targetWidth + ', ' + targetHeight + ', ' + widthMod + ', ' + heightMod + ', ' + fullScreen + ');',10);
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -