复主代码 代码如下: <br><!-- <BR>window.onload = getMsg; <BR>window.onresize = resizeDiv; <BR>window.onerror = function(){} <BR>//短信提示使用 <BR>var divTop,divLeft,divWidth,divHeight,docHeight,docWidth,objTimer,i = 0; <BR>함수 getMsg() <BR>{ <BR> 시도{ <BR> divTop = parseInt(document.getElementById("eMeng").style.top,10) <BR> divLeft = parseInt(document.getElementById(" eMeng").style.left,10) <BR> divHeight = parseInt(document.getElementById("eMeng").offsetHeight,10) <BR> divWidth = parseInt(document.getElementById("eMeng").offsetWidth,10) <BR> docWidth = document.body.clientWidth; <BR> docHeight = document.body.clientHeight; <BR> document.getElementById("eMeng").style.top = parseInt(document.body.scrollTop,10) docHeight 10;// divHeight <BR> document.getElementById("eMeng").style.left = parseInt( document.body.scrollLeft,10) docWidth - divWidth <BR> document.getElementById("eMeng").style.visibility="visible" <BR> objTimer = window.setInterval("moveDiv()",10) <BR> } <BR> catch(e){} <BR>} <br><br>function resizeDiv() <BR>{ <BR> i =1 <BR> if(i>600) closeDiv() //客户想不用自动消失由用户来自己关闭所以屏蔽这句 <br> 시도해 보세요{ <br> divHeight = parseInt(document.getElementById("eMeng").offsetHeight,10) <br> divWidth = parseInt(document.getElementById("eMeng ").offsetWidth,10) <br> docWidth = document.body.clientWidth; <br> docHeight = document.body.clientHeight; <br> document.getElementById("eMeng").style.top = docHeight - divHeight parseInt(document.body.scrollTop,10) <br> document.getElementById("eMeng").style.left = docWidth - divWidth parseInt( document.body.scrollLeft,10) <br> } <br> catch(e){} <br>} <br><br>function moveDiv() <br>{ <br> 시도해 보세요 <br> { <br> if(parseInt(document.getElementById("eMeng").style.top,10) <= (docHeight - divHeight parseInt(document.body.scrollTop,10))) <BR> { <BR> window.clearInterval(objTimer ) <BR> objTimer = window.setInterval("resizeDiv()",1) <BR> } <BR> divTop = parseInt(document.getElementById("eMeng").style.top,10) <BR> document.getElementById ("eMeng").style.top = divTop - 1 <BR> } <BR> catch(e){} <BR>} <BR>함수 closeDiv() <BR>{ <BR> document.getElementById('eMeng ').style.visibility='숨김'; <BR> if(objTimer) window.clearInterval(objTimer) <BR>} <BR>--> <br>