<div class="htmlarea"> <textarea id="runcode44555"> <script language="javascript"> window.onload = enetgetMsg; window.onresize = enetresizeDiv; window.onerror = function(){} var enetdivTop,enetdivLeft,enetdivWidth,enetdivHeight,enetdocHeight,enetdocWidth,enetobjTimer,i = 0; function enetgetMsg() { try{ enetdivTop = parseInt(document.getElementById("enetMeng").style.top,10) enetdivLeft = parseInt(document.getElementById("enetMeng").style.left,10) enetdivHeight = parseInt(document.getElementById("enetMeng").offsetHeight,10) enetdivWidth = parseInt(document.getElementById("enetMeng").offsetWidth,10) enetdocWidth = document.body.clientWidth; enetdocHeight = document.body.clientHeight; document.getElementById("enetMeng").style.top = parseInt(document.body.scrollTop,10) + enetdocHeight + 10;// enetdivHeight document.getElementById("enetMeng").style.left = parseInt(document.body.scrollLeft,10) + enetdocWidth - enetdivWidth document.getElementById("enetMeng").style.visibility="visible" enetobjTimer = window.setInterval("enetmoveDiv()",10) } catch(e){} } function enetresizeDiv() { i+=1 if(i>800) enetcloseDiv() /自动关闭时间 try{ enetdivHeight = parseInt(document.getElementById("enetMeng").offsetHeight,10) enetdivWidth = parseInt(document.getElementById("enetMeng").offsetWidth,10) enetdocWidth = document.body.clientWidth; enetdocHeight = document.body.clientHeight; document.getElementById("enetMeng").style.top = enetdocHeight - enetdivHeight + parseInt(document.body.scrollTop,10) document.getElementById("enetMeng").style.left = enetdocWidth - enetdivWidth + parseInt(document.body.scrollLeft,10) } catch(e){} } function enetmoveDiv() { try { if(parseInt(document.getElementById("enetMeng").style.top,10) <= (enetdocHeight - enetdivHeight + parseInt(document.body.scrollTop,10))) { window.clearInterval(enetobjTimer) enetobjTimer = window.setInterval("enetresizeDiv()",1) } enetdivTop = parseInt(document.getElementById("enetMeng").style.top,10) document.getElementById("enetMeng").style.top = enetdivTop - 1 } catch(e){} } function enetcloseDiv() { document.getElementById('enetMeng').style.visibility='hidden'; if(enetobjTimer) window.clearInterval(enetobjTimer) } </script> <div id="enetMeng" style="BORDER-RIGHT: #455690 1px solid; BORDER-TOP: #a6b4cf 1px solid; Z-INDEX: 99999; LEFT: 0px; VISIBILITY: visible; BORDER-LEFT: #a6b4cf 1px solid; 1px solid; POSITION: absolute; TOP: -256px; HEIGHT: 157px"> <a href="http://www.jb51.net"><img src="http://www.jzxue.com/images/Logo.gif" border="0" alt="超酷右下浮出广告窗口代码_广告代码" ></a> </div> </textarea><br><input onclick="runEx('runcode44555')" type="button" value="运行代码"> <input onclick="doCopy('runcode44555')" type="button" value="复制代码"> <input onclick="doSave(runcode44555)" type="button" value="保存代码">[Ctrl+A 全选 注:<a href="http://www.jb51.net/article/23421.htm" title="查看具体详情" target="_blank">如需引入外部Js需刷新才能执行</a>]</div>