<br> #massage_box{ position:absolute; left:expression((body.clientWidth-massage_box.offsetWidth)/2); top:expression((body.clientHeight-300)/2); width:620px; height:400px;z-index:2; visibility:hidden} #mask{ position:absolute; top:0; left:0; width:expression(body.scrollWidth); height:expression(body.scrollHeight); background:#000000; filter:ALPHA(opacity=65); z-index:1; visibility:hidden; margin:auto} .massage{width:100%; height:100%; color:#036; font-size:12px; line-height:150%} <br> <br> var Obj='' <br> document.onmouseup=MUp <br> document.onmousemove=MMove <br> function MDown(Object){ <br> Obj=Object.id <br> document.all(Obj).setCapture() <br> pX=event.x-document.all(Obj).style.pixelLeft; <br> pY=event.y-document.all(Obj).style.pixelTop; <br> } <br> <br> function MMove(){ <br> if(Obj!=''){ <br> document.all(Obj).style.left=event.x-pX; <br> document.all(Obj).style.top=event.y-pY; <br> } <br> } <br> <br> function MUp(){ <br> if(Obj!=''){ <br> document.all(Obj).releaseCapture(); <br> Obj=''; <br> } <br> } <br> <br> function sc1(){ <br> document.getElementById("massage_box").style.top=document.body.scrollTop+(document.body.clientHeight-document.getElementById("massage_box").offsetHeight)/2 <br> document.getElementById("massage_box").style.left=document.body.scrollLeft+(document.body.clientWidth-document.getElementById("massage_box").offsetWidth)/2; <br> } <br> function scall(){ <br> sc1(); <br> } <br> window.onscroll=scall; <br> window.onresize=scall; <br> window.onload=scall; [关闭] [打开] 테이블> <% for i=1 to 50 '网页加长 response.Write("") 다음 %> 更多相关文章请关注PHP中文网(www.php.cn)!