html public "-//w3c//dtd html 4.0 transitional//en">
<script> <br>var r; <br>var a; <br>var ai; <br>var n; <br>var w; <br>var k; <br>var inter; <br>var period=20000; <br>var dur; <br>var hdur2; <br>var hdur; <br>var z; <br>var nn; <br>var donut; <br>var time; <br>var id = new array(); <br>for(i=0;i<100;i++){ <br> id[i]=document.getelementbyid('ik'+i); <br>} <br><br>function again(){ <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(period/inter); <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> time=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> hey(); <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='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> a+=ai; <br> time++; <br> if(time<dur){ <br> settimeout('hey();',inter); <br> }else{ <br> settimeout('again();',inter); <br> } <br>} <br>again(); <br></script>










