function getElementPos(elementId) { var ua=navigator.userAgent.toLowerCase(); var isOpera=(ua.indexOf('opera')!=-1); var isIE=(ua.indexOf('msie')!=-1&&!isOpera); var el=document.getElementById(elementId); if(el.parentNode===null||el.style.display=='none') { return false } var parent=null; var pos=[]; var box; if(el.getBoundingClientRect) { box=el.getBoundingClientRect(); var scrollTop=Math.max(document.documentElement.scrollTop,document.body.scrollTop); var scrollLeft=Math.max(document.documentElement.scrollLeft,document.body.scrollLeft); return{ x:box.left+scrollLeft,y:box.top+scrollTop} } else if(document.getBoxObjectFor) { box=document.getBoxObjectFor(el); var borderLeft=(el.style.borderLeftWidth)?parseInt(el.style.borderLeftWidth):0; var borderTop=(el.style.borderTopWidth)?parseInt(el.style.borderTopWidth):0; pos=[box.x-borderLeft,box.y-borderTop] } else { pos=[el.offsetLeft,el.offsetTop]; parent=el.offsetParent; if(parent!=el) { while(parent) { pos[0]+=parent.offsetLeft; pos[1]+=parent.offsetTop; parent=parent.offsetParent } } if(ua.indexOf('opera')!=-1||(ua.indexOf('safari')!=-1&&el.style.position=='absolute')) { pos[0]-=document.body.offsetLeft; pos[1]-=document.body.offsetTop } } if(el.parentNode) { parent=el.parentNode } else { parent=null } while(parent&&parent.tagName!='BODY'&&parent.tagName!='HTML') { pos[0]-=parent.scrollLeft; pos[1]-=parent.scrollTop; if(parent.parentNode) { parent=parent.parentNode } else { parent=null } } return{ x:pos[0],y:pos[1]} } function displayDivc(XelementId) { document.getElementById(XelementId).style.display="none"; } function displayDivd(XelementId) { document.getElementById(XelementId).style.display="block"; } function displayDive(XelementId) { //alert(XelementId) document.getElementById(XelementId).style.display="none"; } /* function _mouseMove(ev) { ev= ev || window.event; var mousePos = mouseCoords(ev); //alert(ev.pageX); var _pos=getElementPos("qqlb"); if(mousePos.x < _pos.x){ displayDive('qqlb') document.onmousemove=null } if(mousePos.x > (_pos.x+document.getElementById("qqlb").width)){ displayDive('qqlb') document.onmousemove=null } if(mousePos.y < _pos.y){ displayDive('qqlb') document.onmousemove=null } if(mousePos.y > (_pos.yx+document.getElementById("qqlb").height)){ displayDive('qqlb') document.onmousemove=null } //document.getElementById("xxx").value = mousePos.x; //document.getElementById("yyy").value = mousePos.y; } function mouseCoords(ev) { if(ev.pageX || ev.pageY){ return {x:ev.pageX, y:ev.pageY}; } return { x:ev.clientX + document.body.scrollLeft - document.body.clientLeft, y:ev.clientY + document.body.scrollTop - document.body.clientTop }; } function startShow(){ document.onmousemove = _mouseMove; } */ function _a(){ alert(3) } document.write(""); document.write("
"); document.write("
"); document.write("
关闭
"); document.write("
"); document.write("
"); document.write("
"); document.write("
"); document.write("
"); document.write("
"); document.write("
"); document.write(""); document.write("
"); document.write("
"); document.write("
"); document.write("
");