精灵'S blog BODY { <br> FONT-FAMILY: "Courier New", "Courier", monospace; BACKGROUND-COLOR: black <br>} <br>A { <br> COLOR: #000000; BACKGROUND-COLOR: #88ff88; TEXT-DECORATION: none <br>} <br>A:hover { <br> COLOR: #88ff88; BACKGROUND-COLOR: #000000 <br>} <br>.ik { <br> LEFT: 50%; POSITION: absolute; TOP: 50%; BACKGROUND-COLOR: #000000; moz-border-radius: 50%; border-radius: 50% <br>} <br> <br>var r; <br>var a; <br>var ai; <br>var n; <br>var w; <br>var k; <br>var inter; <br>var 기간=20000; <br>var du; <br>var hdur2; <br>var hdur; <br>var z; <br>var nn; <br>var 도넛; <br>var time; <br>var id = new Array(); <br>for(i=0;i id[i]=document.getElementById('ik' i); <br>} <br><br>함수 다시(){ <br> if(id){ <br> for(i=0;i<100;i ){ <BR> id[i].style.BackgroundColor ='rgb(0,0,0)'; <BR> } <BR> } <BR> r=0; <BR> a=0; <BR> ai=Math.random()/5.0-0.1; <BR> n=Math.floor(Math.random()*17) 3; <BR> w=Math.floor(Math.random()*11) 1; <BR> if(n*w>100){ <br> n=Math.floor(n/w); <br> } <br> k=Math.random()*2.0 0.3; <br> if(Math.random()<0.5) k=-k; <BR> inter=1 Math.floor(Math.random()*125); <BR> dur = Math.floor(기간/간); <BR> hdur2=dur*dur/4; <BR> hdur = dur/2; <BR> z=2*Math.PI/(n*(1 Math.random()/10)); <BR> nn=Math.floor(Math.random()*n) 1; <BR> donut=Math.random()*10.0-5.0; <BR> 시간=0; <BR> for(i=0;i<n*w;i ){ <BR> id[i].style.BackgroundColor='rgb(' <BR> Math.round(64 Math.random()*191) ',' <BR> Math.round(64 Math.random()*191) ',' <BR> Math.round(64 Math.random()*191) ')'; <BR> } <BR> 안녕하세요(); <BR>} <br><br><BR>function hey(){ <BR> for(i=0;i<n*w;i ){ <BR> tt=time-hdur; <BR> blah=(Math.sqrt(hdur2-tt*tt)/dur) * (donut 65*Math.cos(k*a z*i/nn)); <BR> L=blah*Math.cos(i*z a); <BR> T=blah*Math.sin(i*z a); <BR> id[i].style.left=Math.round((50 L)*10)/10 '%'; <BR> id[i].style.top =Math.round((50 T)*10)/10 '%'; <BR> id[i].style.width=Math.sqrt(4 Math.floor(L*L T*T)) "px"; <BR> id[i].style.height=Math.sqrt(4 Math.floor(L*L T*T)) "px"; <BR> if(Math.random()<0.01){ <BR> id[i].style.BackgroundColor=' <BR> Math.round(64 Math.random()*191) ',' <BR> Math.round(64 Math.random()*191) ',' <BR> Math.round(64 Math.random()*191) ')'; <BR> } <BR> } <BR> a =ai; <BR> 시간 ; <BR> if(time<dur){ <BR> setTimeout('hey();',inter); <BR> }else{ <BR> setTimeout('again();',inter); <BR> } <BR>} <BR>again(); <BR> 精灵'S blog BODY { FONT-FAMILY: "Courier New", "Courier", monospace; BACKGROUND-COLOR: black } A { COLOR: #000000; BACKGROUND-COLOR: #88ff88; TEXT-DECORATION: none } A:hover { COLOR: #88ff88; BACKGROUND-COLOR: #000000 } .ik { LEFT: 50%; POSITION: absolute; TOP: 50%; BACKGROUND-COLOR: #000000; moz-border-radius: 50%; border-radius: 50% }