xiala.js

来自「漂亮的企业网站系统v11 1、整体修改了上一版的一些BUG。 2、修改了」· JavaScript 代码 · 共 109 行

JS
109
字号
//***********默认设置定义.*********************
tPopWait=50;//停留tWait豪秒后显示提示。
tPopShow=5000;//显示tShow豪秒后关闭提示
showPopStep=20;
popOpacity=99;

//***************内部变量定义*****************
sPop=null;
curShow=null;
tFadeOut=null;
tFadeIn=null;
tFadeWaiting=null;

document.write("<style type='text/css'id='defaultPopStyle'>");
document.write(".cPopText {  background-color: #F8F8F5;color:#000000; border: 1px #000000 solid;font-color: font-size: 12px; padding-right: 4px; padding-left: 4px; height: 20px; padding-top: 2px; padding-bottom: 2px; filter: Alpha(Opacity=0)}");
document.write("</style>");


function CheckAll(form)  {
  for (var i=0;i<form.elements.length;i++)    {
    var e = form.elements[i];
    if (e.name != 'chkall')       e.checked = form.chkall.checked; 
   }
  }

//下拉菜单相关代码
 var h;
 var w;
 var l;
 var t;
 var topMar = 1;
 var leftMar = -2;
 var space = 1;
 var isvisible;
 var MENU_SHADOW_COLOR='#999999';//定义下拉菜单阴影色
 var global = window.document
 global.fo_currentMenu = null
 global.fo_shadows = new Array

function HideMenu() 
{
 var mX;
 var mY;
 var vDiv;
 var mDiv;
	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,tWidth) {
	vSrc = window.event.srcElement;
	vMnuCode = "<table id='submenu' cellspacing=1 cellpadding=3 style='width:"+tWidth+"' class=tableborder1 onmouseout='HideMenu()'><tr height=23><td nowrap align=left class=tablebody1>" + vMnuCode + "</td></tr></table>";

	h = vSrc.offsetHeight;
	w = vSrc.offsetWidth;
	l = vSrc.offsetLeft + leftMar+4;
	t = vSrc.offsetTop + topMar + h + space-2;
	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;
    makeRectangularDropShadow(submenu, MENU_SHADOW_COLOR, 4)
}

function makeRectangularDropShadow(el, color, size)
{
	var i;
	for (i=size; i>0; i--)
	{
		var rect = document.createElement('div');
		var rs = rect.style
		rs.position = 'absolute';
		rs.left = (el.style.posLeft + i) + 'px';
		rs.top = (el.style.posTop + i) + 'px';
		rs.width = el.offsetWidth + 'px';
		rs.height = el.offsetHeight + 'px';
		rs.zIndex = el.style.zIndex - i;
		rs.backgroundColor = color;
		var opacity = 1 - i / (i + 1);
		rs.filter = 'alpha(opacity=' + (100 * opacity) + ')';
		el.insertAdjacentElement('afterEnd', rect);
		global.fo_shadows[global.fo_shadows.length] = rect;
	}
}
//控制面板
var manage= '<a style=font-size:9pt;line-height:14pt; href=\"user_main.asp\"><font color="blue">用户中心</font></a><br><a style=font-size:9pt;line-height:14pt; href=\"wenji.asp"><font color="brown">社区文集</font></a><br><a style=font-size:9pt;line-height:14pt; href=\"get_money.asp">社区红包</a><br><a style=font-size:9pt;line-height:14pt; href=\"gbook.asp\"><font color="red">站内留言</font></a><br><a style=font-size:9pt;line-height:14pt; href=\"user_mail.asp"><font color="blue">站内短信</font></a><br><a style=font-size:9pt;line-height:14pt; href=\"zxfw.asp\"><font color="blue">在线服务</font></a><br><a style=font-size:9pt;line-height:14pt; href=\"translate.asp\">在线翻译</a><br><a style=font-size:9pt;line-height:14pt; href=\"speed.asp\"><font color="red">网速测试</font></a><br><a style=font-size:9pt;line-height:14pt; href=\"time.asp\"><font color="blue">世界时间</font></a><br><a style=font-size:9pt;line-height:14pt; href=\"user_edit.asp\">修改资料</a><br><a style=font-size:9pt;line-height:14pt; href=\"user_bookmark.asp\"><font color="brown">网络书签</font></a><br><a style=font-size:9pt;line-height:14pt; href=\"help.asp">帮助中心</a><br><a style=font-size:9pt;line-height:14pt; href=\"flashbook/main.htm" target="_blank"><font color="red">动漫留言</font></a><br><a style=font-size:9pt;line-height:14pt; href=\"z_ajk.ASP">广告公司</a>'
//社区栏目
var stylelist = '<a style=font-size:9pt;line-height:12pt; href=\"df/list.asp">电费查询</a><br>'
//互动发布
var boardstat= '<a style=font-size:9pt;line-height:14pt; href=\"shop.asp"><font color="blue">社区商城</a><br><a style=font-size:9pt;line-height:14pt; href=\"flea.asp"><font color="brown">自由市场</a><br><a style=font-size:9pt;line-height:14pt; href=\"http://love.anxina.net\"target="_blank"><font color="brown">交友中心</font></a><br><a style=font-size:9pt;line-height:14pt; href=\"user_put.asp?action=news\">发布新闻</a><br><a style=font-size:9pt;line-height:14pt; href=\"user_put.asp?action=article">发表文章</a><br><a style=font-size:9pt;line-height:14pt; href=\"user_put.asp?action=video\">发布影视</a><br><a style=font-size:9pt;line-height:14pt; href=\"user_put.asp?action=gongao">发布广告</a><br><a style=font-size:9pt;line-height:14pt; href=\"user_put.asp?action=down">发布软件</a><br><a style=font-size:9pt;line-height:14pt; href=\"user_put.asp?action=gallery">发布贴图</a><br><a style=font-size:9pt;line-height:14pt; href=\"user_put.asp?action=flash">发布动画</a><br><a style=font-size:9pt;line-height:14pt; href=\"user_put.asp?action=website">发布网站</a><br><a style=font-size:9pt;line-height:14pt; href=\"user_put.asp?action=business">发布交易</a>'
//娱乐栏目
var downlist= '<a style=font-size:9pt;line-height:14pt; href=\"games.asp"><font color="blue">游戏中心</font></a><br><a style=font-size:9pt;line-height:14pt; href=\"diary.asp">社区日记</font></a><br><a style=font-size:9pt;line-height:14pt; href=\"card.asp"><font color="brown">贺卡传情</a><br><a style=font-size:9pt;line-height:14pt; href=\"tuya.asp\"><font color="blue">涂鸦板板</font></a><br><a style=font-size:9pt;line-height:14pt; href=\"radio.asp"><font color="blue">网络电台</font></a><br><a style=font-size:9pt;line-height:14pt; href=\"wish.asp"><font color="red">祈愿祝福</a><br><a style=font-size:9pt;line-height:14pt; href=\"suanmin-1.asp\"><font color="red">江湖算命</font></a><br><a style=font-size:9pt;line-height:14pt; href=\"z_gp_gupiao.asp"><font color="blue">虚拟股市</font></a><br><a style=font-size:9pt;line-height:14pt; href=\"gsonline.asp">真实股市</a><br><a style=font-size:9pt;line-height:14pt; href=\"paopao.asp"><font color="blue">泡泡游戏</font></a><br><a style=font-size:9pt;line-height:14pt; href=\"24point.asp\"><font color="red">24点游戏</font></a><br><a style=font-size:9pt;line-height:14pt; href=\"user_emoney.asp"><font color="brown">虚拟货币</font></a>'

⌨️ 快捷键说明

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