function CheckForm() { if(document.UserLogin.UserName.value=="") { alert("请输入用户名!"); document.UserLogin.UserName.focus(); return false; } if(document.UserLogin.Password.value == "") { alert("请输入密码!"); document.UserLogin.Password.focus(); return false; } if (document.UserLogin.CheckCode.value=="") { alert ("请输入您的验证码!"); document.UserLogin.CheckCode.focus(); return(false); } } function openScript(url) { var Win = window.open(url,"UserControlPad"); } function openScript2(url,width,height) { var Win = window.open(url,"messpop",'width=' + width + ',height=' + height + ',resizable=1,scrollbars=yes,menubar=yes,status=yes' ); } function CheckAll(form) { for (var i=0;i 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 = ""; 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; } } function zoom_img(e, o) { var zoom = parseInt(o.style.zoom, 10) || 100; zoom += event.wheelDelta / 12; if (zoom > 0) o.style.zoom = zoom + '%'; return false; } //双击鼠标滚动屏幕的代码 var currentpos,timer; function initialize() { timer=setInterval ("scrollwindow ()",30); } function sc() { clearInterval(timer); } function scrollwindow() { currentpos=document.body.scrollTop; window.scroll(0,++currentpos); if (currentpos !=document.body.scrollTop) sc(); } document.onmousedown=sc document.ondblclick=initialize