Português
<script language="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; largura:40; altura:60;"><a href="'+mvtLink+'" target=_blank><img src="'+mvtLight+'" border=0 width="'+mvtWidth+'" height="'+mvtHeight+'" alt="'+mvtAlt+'"> </a></div>'); var vmin=2; var vmax=5; var var timer1; //mais javascript de http://www.downcodes.com function Chip(chipname). ,largura,altura) {this.named=chipname; this.vx=vmin+vmax*Math.random(); this.vy=vmin+vmax*Math.random(); isto.w=largura; isto.h=altura; isto.xx=0; isto.aa=0; este.timer1=nulo; } function movechip(chipname) { if(brOK) {eval("chip="+chipname); if(ns4) {pageX=window.pageXOffset; pageW=janela.innerWidth; páginaY=window.pageYOffset; páginaH=janela.innerHeight; } else {pageX=window.document.body.scrollLeft; pageW=window.document.body.offsetWidth-8; pageY = janela.document.body.scrollTop; páginaH=window.document.body.offsetHeight; } chip.xx=chip.xx+chip.vx; chip.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<=páginaX) { chip.xx=páginaX; chip.vx=vmin+vmax*Math.random(); } if(chip.xx>=páginaX+páginaW-chip.w) { chip.xx=páginaX+páginaW-chip.w; chip.vx=-vmin-vmax*Math.random(); } if(chip.yy<=páginaY) { chip.yy=páginaY; chip.vy=vmin+vmax*Math.random(); } if(chip.yy>=páginaY+páginaH-chip.h) { chip.yy=páginaY+páginaH-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); //设置速度,数值越大速度越慢 } } function stopme(chipname) {if(brOK) {//alert(chipname) eval("chip="+chipname); if(chip.timer1!=null) {clearTimeout(chip.timer1)} } } var mvt; função mvt() { mvt=new Chip("mvt",60,80); if(brOK){ movechip("mvt"); } } window.onload=mvt //--> </script>