maxwindow.js

来自「学生管理录 一个老师用的 好东西 里面有使用说明!!!~~~~~~」· JavaScript 代码 · 共 29 行

JS
29
字号
/***********************************************
* Auto Maximize Window Script- ? Dynamic Drive (www.dynamicdrive.com)
* This notice must stay intact for use
* Visit http://www.dynamicdrive.com/ for this script and 100's more.
***********************************************/
function mw()
{
top.window.moveTo(0,0);
if (document.all)
	{
	top.window.resizeTo(screen.availWidth,screen.availHeight);
	}
else if (document.layers||document.getElementById)
	{
	if (top.window.outerHeight<screen.availHeight||top.window.outerWidth<screen.availWidth)
		{
		top.window.outerHeight = screen.availHeight;
		top.window.outerWidth = screen.availWidth;
		}
	}
}
//状态栏时钟代码
function kstatus()
{ 
var strStatus = '欢迎你进入本系统 今天是'+new Date().toLocaleString()+' 星期'+'日一二三四五六'.charAt(new Date().getDay());
window.status=strStatus;
setTimeout("kstatus()",1000);
} 
kstatus();

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?