한국어
<!-- http://www.downcodes.com --> <!-- bbs http://bbs.downcodes.com --> <!--把下面的代码加到<BODY>区域中-- > <body BGCOLOR=#000000> <script 언어="JavaScript"> if (document.all){ xL=5; xH=0; x폭=0; xR=0; xE=0; xMY=0; xMX=0; x폭=0; xHd=0; xF=새 배열(); xY=새 배열(); xX=새 배열(); xS=새 배열(); xA=새 배열(); xB=새 배열(); ini=새 배열(); cl=new 배열('#fff000','#0000FF','#ff0000','#00ff00','#ff00ff','#ffa500') document.write('<div id="xouter" style=" 위치:절대;상단:0px;왼쪽:0px"><div 스타일="위치:상대">'); for (i=0; i < xL; i++){ document.write('<div id="xie" style="position:absolute;top:0;left:0;width:10px;height:10px;' + '글꼴-가족:Courier New;글꼴-크기:50px;색상:#ffffff">.</div>'); } document.write('</div></div>'); //초기 배치! function Set(){ for (i=0; i < xL; i++){ xH=window.document.body.offsetHeight; xW=window.document.body.offsetWidth; xA[i]=Math.round(Math.random()*xH); xB[i]=Math.round(Math.random()*xW); xS[i]=Math.random()*0.07+0.05; xR=Math.round(Math.random()*3); xE=Math.round(Math.random()*2500+50) if (xR == 3) xB[i]=-xE; if (xR == 2) xB[i]=xW+xE; if (xR == 1) xA[i]=-xE; if (xR == 0) xA[i]=xH; xF[i]=xW/14; } } 세트(); 함수 할당(){ xouter.style.top=document.body.scrollTop; for (i=0; i < xL; i++){ xF[i]-=xS[i]*25; if (xF[i] < 4) xF[i]=3; xie[i].style.top =xY[i]; xie[i].style.left=xX[i]; xie[i].style.fontSize=xF[i]; xie[i].style.filter='glow(color='+ini[i]+', Strength='+xF[i]/3+')'; } } function fly(){ var N=Math.floor(Math.random()*cl.length) xMY=window.document.body.clientHeight/2; xMX=window.document.body.clientWidth/2; xWd=Math.round(Math.random()*40+5); xHd=Math.round(Math.random()*30+5); for (i=0; i < xL; i++) { xY[i]=xA[i]+=(xMY-xA[i])*(xS[i]); xX[i]=xB[i]+=(xMX-xB[i])*(xS[i]); if ((xX[i] > xMX-xWd) && (xX[i] < xMX+xWd) && (xY[i] > xMY-xHd) && (xY[i] < xMY+xHd)){ xH=창 .document.body.offsetHeight; xW=window.document.body.offsetWidth; xA[i]=Math.round(Math.random()*xH); xB[i]=Math.round(Math.random()*xW); xS[i]=Math.random()*0.05+0.05; xR=Math.round(Math.random()*3); xE=Math.round(Math.random()*50+50) if (xR == 3) xB[i]=-xE; if (xR == 2) xB[i]=xW+xE; if (xR == 1) xA[i]=-xE; if (xR == 0) xA[i]=xH+xE; } if ((xX[i] < 0) || (xX[i] > xW) || (xY[i] < 0) || (xY[i] > xH)) { xF[i]=xW/ 14; ini[i]=cl[N]; } } 할당(); setTimeout('fly()',10); } 파리(); } // --> </script>