⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 winonload.js

📁 j2ee源码
💻 JS
字号:
/*****************************
Author:
Creation Date:
Description:

Amendment History
====================================

******************************/
var onloadCommands = new Array();
var onunloadCommands = new Array();

function Window_OnLoad () {
    for (i=0; i<onloadCommands.length; i++)
        eval(onloadCommands[i]);
}

function Window_OnUnload () {
    for (i=0; i<onunloadCommands.length; i++)
        eval(onunloadCommands[i]);
}

function Window_OnBeforeUnload () {
    // Show "Processing" message when page unloads
	toggleProcessing(true);
}

window.onload = Window_OnLoad;
window.onunload = Window_OnUnload;

function toggleProcessing(shown) {
    var o = document.getElementById("ProcessingIndicator");
    if (o && o.style)
		if (shown) {
			o.style.display = "inline";
			document.documentElement.style.cursor = "wait";
		} else {
			o.style.display = "none";
			document.documentElement.style.cursor = "auto";
		}
}
window.onbeforeunload = Window_OnBeforeUnload;

// Display "Processing" when page is rendering, hide it when finish
onloadCommands.push ("toggleProcessing(false);");

function suspendParentProcessing() {
	try {
		if (window.opener && window.opener.document) {
			var doc = window.opener.document;
			var o = doc.getElementById("ProcessingIndicator");
			if (o && o.style) {
				o.style.display = "none";
				doc.documentElement.style.cursor = "auto";
			}
		}	
	} catch (ex) {
		;
	}
}
onloadCommands.push ("suspendParentProcessing();");

// TPR-UAT-0111
// 19-Jan-2005 Carl Tse (Vanda)
// Provide auto-logout for the base page
function logoutByCloseWindow() {
	if (window.name && window.name.substr(0,7) == "HWLIAS_")
		if (event)
			if (event.clientX < 0 && event.clientY < 0) {
				window.open("/iasweb/Logon/Logout.aspx?CLOSE_WIN=1", "","top=0,left=0,width=10,height=10,channelmode=no,directories=no,fullscreen=no,location=no,menubar=no,resizable=yes,scrollbars=yes,status=yes,titlebar=no,toolbar=no");
			}
}
onunloadCommands.push ("logoutByCloseWindow();");
// End of TPR-UAT-0111

⌨️ 快捷键说明

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