<div class="htmlarea"><textarea id="runcode69466"> <script language="javascript"> var Then = new Date(); Then.setTime(Then.getTime() + 12*60*60*1000 ); //秒分 var cookieString = new String(document.cookie); var cookieHeader = "POPWIN" ; var beginPosition = cookieString.indexOf(cookieHeader); if (beginPosition == -1) { var newtop=0 var newleft=0 if (navigator.appName == "Netscape") { layerStyleRef="layer."; layerRef="document.layers"; styleSwitch=""; } else { layerStyleRef="layer.style."; layerRef="document.all"; styleSwitch=".style"; } var autoclick_ok=false; function toExit(){ autoclick_ok=true; document.cookie = "Cookie9=POPWIN;expires="+ Then.toGMTString() +";path=/"; } function doMouseMove() { layerName = 'iit' eval('var curElement='+layerRef+'["'+layerName+'"]') eval(layerRef+'["'+layerName+'"]'+styleSwitch+'.visibility="hidden"') if(!autoclick_ok) { eval('curElement'+styleSwitch+'.visibility="visible"') }else{ eval('curElement'+styleSwitch+'.visibility="hidden"') } eval('newleft=document.body.clientWidth-curElement'+styleSwitch+'.pixelWidth') eval('newtop=document.body.clientHeight-curElement'+styleSwitch+'.pixelHeight') eval('height=curElement'+styleSwitch+'.height') eval('width=curElement'+styleSwitch+'.width') width=parseInt(width) height=parseInt(height) if (event.clientX > (document.body.clientWidth - 10 - width)) { newleft=document.body.clientWidth + document.body.scrollLeft - 10 - width } else { newleft=document.body.scrollLeft + event.clientX-10 } eval('curElement'+styleSwitch+'.pixelLeft=newleft') if (event.clientY > (document.body.clientHeight - 5 - height)) { newtop=document.body.clientHeight + document.body.scrollTop - 5 - height } else { newtop=document.body.scrollTop + event.clientY-10 } eval('curElement'+styleSwitch+'.pixelTop=newtop') } document.onmousemove = doMouseMove; if (navigator.appName == "Netscape") { } else { document.write('<div ID=OuterDiv>') document.write('<a href="http://www.jb51.net" target="_blank"><img ID=iit src="http://www.jb51.net/images/click.gif" STYLE="position:absolute;TOP:0pt;LEFT:0pt; style="max-width:90%" border="0" onclick="toExit()" alt="点下网页的任意地方,都可到达指定页面的js代码_广告代码" >') document.write('</script></textarea></div>') } } <br><input onclick="runEx('runcode69466')" type="button" value="运行代码"> <input onclick="doCopy('runcode69466')" type="button" value="复制代码"> <input onclick="doSave(runcode69466)" type="button" value="保存代码">[Ctrl+A 全选 注:<a href="http://www.jb51.net/article/23421.htm" title="查看具体详情" target="_blank">如需引入外部Js需刷新才能执行</a>]