TOP /‚·‚®‚ÉŽg‚¦‚éJavaScript ‰J‚ÌŽ´
<script type="text/javascript"><!--
sx=new Array();sy=new Array();sp=new Array();
num=Math.floor(Math.random()*10)+10;             //Ž´‚̐”(Œ»Ý10`20ŒÂ)
Colors=new Array('#99ffff','#99ddff','#99ffee','#99ffdd','#99eeff');
scrnx=document.body.clientWidth;
scrny=document.body.clientHeight-35;
for(i=0;i<num;i++)
{
sx[i]=Math.floor(Math.random()*scrnx);
sy[i]=Math.floor(Math.random()*scrny);
sp[i]=Math.floor(Math.random()*4)+2;           //ƒXƒs[ƒhÝ’è(Œ»Ý2`6)
document.write("<DIV style='position:absolute;width:15px;height:15px;z_index:2;top:"
+ sy[i]+"px;left:"+sx[i]+"px;filter: Alpha(opacity=80);font-family:wingdings;color:#99ffff;font-size:15;'ID='sizuku"+i+"'>S</DIV>");
}
function momeShow(){
for(i=0;i<num;i++)
{
sy[i]+=sp[i];
if(sy[i]>scrny)sy[i]=-10;
color=Colors[Math.floor(Math.random()*Colors.length)];
if(document.all){
document.all["sizuku"+i].style.pixelTop=sy[i]+document.body.scrollTop;
document.all["sizuku"+i].style.pixelLeft=sx[i]+document.body.scrollLeft;
document.all["sizuku"+i].style.color=color;
}else{
document.getElementById("sizuku"+i).style.top=sy[i]+pageYOffset+"px";
document.getElementById("sizuku"+i).style.left=sx[i]+pageXOffset+"px";
document.getElementById("sizuku"+i).style.color=color;
}
}
}
function reShow(){
scrnx=document.body.clientWidth;
scrny=document.body.clientHeight-30;
for(i=0;i>num;i++)
sx[i]=Math.floor(Math.random()*scrnx);
}
onresize=reShow;
setInterval('momeShow()',100);/* himajin.moo.jp */
// --></script>