한국어
<script 언어="JavaScript"> <!-- if(parseInt(navigator.appVersion.charAt(0))<4){ location.href="http://www.downcodes.com" } var mvtLight="/ img/200406301.jpg" var mvtWidth=90 var mvtHeight=90 var mvtLink="http://www.downcodes.com" var mvtAlt="http://www.downcodes.net" brOK=navigator.javaEnabled()? true:false ns4=(document.layers)?true:false ie4=(document.all)?true:false if(ns4){ document.write('<layer id="mvt" width=40 height=60;" ><a href="'+mvtLink+'" target=_blank><img src="'+mvtLight+'" border=0 width="'+mvtWidth+'" height="'+mvtHeight+'" alt="'+mvtAlt+ '"></a></layer>'); } else{ document.write('<div id="mvt" style="position:absolute; width:40; height:60;"><a href="'+mvtLink+'" target=_blank><img src="'+mvtLight+'" border=0 width="'+mvtWidth+'" height="'+mvtHeight+'" alt="'+mvtAlt+'"> </a></div>') } var vmin=2; var vr=2; //http://www.downcodes.com의 추가 자바스크립트 function Chip(칩이름) ,너비, 높이) {this.named=칩이름; this.vx=vmin+vmax*Math.random(); this.vy=vmin+vmax*Math.random(); this.w=너비; this.h=키; this.xx=0; this.yy=0; this.timer1=null; } function movechip(칩이름) { if(brOK) {eval("chip="+칩이름); if(ns4) {pageX=window.pageXOffset; pageW=window.innerWidth; pageY=window.pageYOffset; pageH=window.innerHeight; } else {pageX=window.document.body.scrollLeft; pageW=window.document.body.offsetWidth-8; pageY=window.document.body.scrollTop; pageH=window.document.body.offsetHeight; } 칩.xx=chip.xx+chip.vx; 칩.yy=chip.yy+chip.vy; Chip.vx+=vr*(Math.random()-0.5); Chip.vy+=vr*(Math.random()-0.5); if(chip.vx>(vmax+vmin)) Chip.vx=(vmax+vmin)*2-chip.vx; if(chip.vx<(-vmax-vmin)) Chip.vx=(-vmax-vmin)*2-chip.vx; if(chip.vy>(vmax+vmin)) Chip.vy=(vmax+vmin)*2-chip.vy; if(chip.vy<(-vmax-vmin)) Chip.vy=(-vmax-vmin)*2-chip.vy; if(chip.xx<=페이지X) { 칩.xx=페이지X; Chip.vx=vmin+vmax*Math.random(); } if(chip.xx>=pageX+pageW-chip.w) { Chip.xx=pageX+pageW-chip.w; Chip.vx=-vmin-vmax*Math.random(); } if(chip.yy<=pageY) { 칩.yy=pageY; Chip.vy=vmin+vmax*Math.random(); } if(chip.yy>=pageY+pageH-chip.h) { Chip.yy=pageY+pageH-chip.h; Chip.vy=-vmin-vmax*Math.random(); } if(ns4){ eval('document.'+chip.named+'.top ='+chip.yy); eval('document.'+chip.named+'.left='+chip.xx); } else{ eval('document.all.'+chip.named+'.style.pixelLeft='+chip.xx); eval('document.all.'+chip.named+'.style.pixelTop ='+chip.yy); } Chip.timer1=setTimeout("movechip('"+chip.named+"')",100); //속도 변화, 数值越大速degree越慢 } } function stopme(칩 이름) {if(brOK) {//alert(칩 이름) eval("chip="+칩 이름); if(chip.timer1!=null) {clearTimeout(chip.timer1)} } } var mvt; function mvt() { mvt=new Chip("mvt",60,80); if(brOK){ movechip("mvt"); } } window.onload=mvt //--> </script>