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

📄 pub.js

📁 job written test you logical reasoning ability.rar
💻 JS
字号:

var CSKey;
var xmlhttp = false;

function newHttpRequest()
{
	var http = false;

	try {
		http = new ActiveXObject("Msxml2.XMLHTTP");
	}catch(e)
	{
		try
		{
			http = new ActiveXObject("Microsoft.XMLHTTP");
		}catch(E)
		{
			http = false;
		}
	}

	if(!http && typeof XMLHttpRequest != 'undefined')
	{
		try
		{
			http = new XMLHttpRequest();
		}catch(E)
		{
			http = false;
		}
	}

	return http;
}

function OnReadyStateChange()
{
	if(xmlhttp.readyState == 4)
	{
		if(xmlhttp.status != 200)
			document.cookie = CSKey + "=1; domain=xici.net; path=/; expires=" + (new Date()).toGMTString();
		xmlhttp = false;
	}
}

function KeepOnline()
{
	if(!xmlhttp && (document.cookie.indexOf(CSKey) == -1))
	{
		try {
			var d = new Date();

			d.setTime((new Date()).getTime() + 40000);
			document.cookie = CSKey + "=1; domain=xici.net; path=/; expires=" + d.toGMTString();

			xmlhttp = newHttpRequest();
			xmlhttp.open("GET", "/service/ping.asp?" + (new Date()).getTime(), true);
			xmlhttp.onreadystatechange = OnReadyStateChange;
			xmlhttp.send(null);
		}catch(e){xmlhttp = false;document.cookie = CSKey + "=1; domain=xici.net; path=/; expires=" + (new Date()).toGMTString();}
	}

	setTimeout("KeepOnline()", 1000);
}

if(location.protocol == "http:")
{
	if(parent != window)
	{
		try{var tl = parent.parent.location.host;}
		catch(e){top.location = location;}
	}else
	{
		n = document.cookie.indexOf("SessionID");
		if(n != -1)
		{
			CSKey = "cs_" + document.cookie.substr(n + 10, 16);
			setTimeout("KeepOnline()", 1000);
		}else top.location = "/service/403_cookie.htm";
	}
}

function closeWindow()
{
	try
	{
		parent.parent.MDIClose();
	}catch(e)
	{
		window.close();
	}
}

//nActiveMode: 1,Active;2,Refresh
function openWindow(url, nActiveMode)
{
	try
	{
		parent.parent.MDIOpen(url, nActiveMode);
	}catch(e)
	{
		var win = window.open(url);
		if(!nActiveMode)win.blur();
	}
}

var isMSIE = (navigator.appName == "Microsoft Internet Explorer");
var openWindowArgs;
function openDialog(url, width, height, args) {
	try
	{
		openWindowArgs = args;
		parent.MDIOpenDialog(url, width, height, window);
	}catch(e)
	{
		var html, x, y;

		openWindowArgs = args;

		x = parseInt(screen.width / 2.0) - (width / 2.0);
		y = parseInt(screen.height / 2.0) - (height / 2.0);

		if (isMSIE)
		{
			var features = "resizable:no;scroll:no;status:yes;center:yes;help:no;dialogWidth:"
				+ width + "px;dialogHeight:" + height + "px;";

			window.showModalDialog(url, window, features);
		} else {
			var win = window.open(url, "mcePopup", "top=" + y + ",left=" + x + ",scrollbars=no,dialog=yes,minimizable=no,modal=yes,width=" + width + ",height=" + height + ",resizable=no");
			eval('try { win.resizeTo(width, height); } catch(e) { }');
			win.focus();
		}
	}
}

var realPath='';

⌨️ 快捷键说明

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