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

📄 yuhuan.js

📁 一个ASP做的政府网站的全站程序
💻 JS
字号:
 var h;
 var w;
 var l;
 var t;
 var topMar = 0;
 var leftMar = -1;
 var space = 1;
 var isvisible;

function HideMenu() 
{
 var mX;
 var mY;
 var vDiv;
	if (isvisible == true)
{
		vDiv = document.all("menuDiv");
		mX = window.event.clientX + document.body.scrollLeft;
		mY = window.event.clientY + document.body.scrollTop;
		if ((mX < parseInt(vDiv.style.left)) || (mX > parseInt(vDiv.style.left)+vDiv.offsetWidth) || (mY < parseInt(vDiv.style.top)-h) || (mY > parseInt(vDiv.style.top)+vDiv.offsetHeight)){
			vDiv.style.visibility = "hidden";
			isvisible = false;
		}
	}
}

function ShowMenu(vMnuCode) {
	vSrc = window.event.srcElement;
	vMnuCode = "<table border=0 cellspacing=0 cellpadding=0 bgcolor=FFCC00 ><tr><td nowrap align=left>" + vMnuCode + "</td></tr></table>";

	h = vSrc.offsetHeight;
	w = vSrc.offsetWidth;
	l = vSrc.offsetLeft + leftMar;
	t = vSrc.offsetTop + topMar + h + space;
	vParent = vSrc.offsetParent;
	while (vParent.tagName.toUpperCase() != "BODY")
	{
		l += vParent.offsetLeft;
		t += vParent.offsetTop;
		vParent = vParent.offsetParent;
	}

	menuDiv.innerHTML = vMnuCode;
	menuDiv.style.top = t;
	menuDiv.style.left = l;
	menuDiv.style.visibility = "visible";
	isvisible = true;
	
}

function popwin(id,dbname)
{
window.open("updatetext.asp?id="+id+"&dbname="+dbname,"updatetext","height=345,width=455,resizable=no,scrollbars=no,status=no,toolbar=no,menubar=yes,location=no");
}

function popmail(id)
{
window.open("updatemail.asp?id="+id,"updatetext","height=345,width=455,resizable=no,scrollbars=no,status=no,toolbar=no,menubar=yes,location=no");
}

function popupload()
{
window.open("upload.asp","upload","height=171,width=336,resizable=no,scrollbars=no,status=no,toolbar=no,menubar=yes,location=no");
}

function popchangepass()
{
window.open("changepass.asp","chgpass","height=171,width=336,resizable=no,scrollbars=no,status=no,toolbar=no,menubar=yes,location=no");
}

function popphoto(id,photolist)
{
window.open("addphoto.asp?id="+id+"&photolist="+photolist,"chgpass","height=171,width=336,resizable=no,scrollbars=no,status=no,toolbar=no,menubar=yes,location=no");
}

function add2search(category)
{
window.open("search.asp?category="+category,"search","height=171,width=336,resizable=no,scrollbars=no,status=no,toolbar=no,menubar=yes,location=no");
}

function openText(id)
{
window.open("openText.asp?id="+id,"openText","height=480,width=640,resizable=no,scrollbars=yes,status=no,toolbar=no,menubar=yes,location=no");
}

⌨️ 快捷键说明

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