<title> three-leaf rotation around the mouse spin </title>
<meta content= "text/html; charset=gb2312 "http-equiv=" Content-type ">
<body bgcolor= "#000000" >
<script
Language= "JavaScript" >
<!--
To add + stars simply add more colours in below array!!
Colours=new Array (' ff0000 ', ' 00ff00 ', ' 3366ff ', ' ff00ff ', ' ffa500 ', ' ffffff ', ' fff000 ')
Alter Nothing below!!
Amount=colours.length;
Ygetdelay=0,xgetdelay=0,ydelay=0,xdelay=0,ns= (document.layers) 1:0,step=0.2,currstep=0,my=0,mx=0;
if (NS) {
for (i=0; i < amount; i++)
document.write (' <layer name= ' nsstars ' +i+ ' "bgcolor= ' +colours[i]+ ' clip=" 0,0,2,2 "></LAYER>");
}
else{
document.write (' <div id= ' ie "style=" position:absolute;top:0;left:0; " ><div style= "position:relative" > ");
for (i=0; i < amount; i++)
document.write (' <span id= ' Iestars "style=" Position:absolute;top:0;left:0;width:2px;height:2px;background: ' + colours[i]+ '; font-size:2px ' ></span> ');
document.write (' </div></div> ');
}
if (NS) {
Window.captureevents (Event.mousemove);
function Nmouse (evnt) {
My=evnt.pagey;mx=evnt.pagex
}
Window.onmousemove=nmouse;
}
else{
function Imouse () {
My=event.y;mx=event.x;
}
Document.onmousemove=imouse
}
Function Stars () {
if (!ns) ie.style.top=document.body.scrolltop;
for (i=0; i < amount; i++)
{
var layer= (document.layers)? document.layers["Nsstars" +i]:iestars[i].style;
Layer.top= Ydelay+100*math.sin ((5*math.sin ((currStep-15.99)/10) +i*70) *math.sin ((currstep)/10) *math.cos (( CURRSTEP+I*25)/10);
Layer.left=xdelay+180*math.cos ((5*math.sin ((currStep-15.99)/10) +i*70) *math.sin ((currstep)/10) *math.cos (( CURRSTEP+I*25)/10);
}
Currstep+=step;
}
function delay () {
Ydelay = ygetdelay+= (my-ygetdelay) *1/20;
Xdelay = xgetdelay+= (mx-xgetdelay) *1/20;
Stars ();
SetTimeout (' Delay () ', 10);
}
Delay ();
-
</script>
<script language= "JavaScript" >
<!--Hide
function Gohist (a)
{
History.go (a);
}
-
</script>
<div> Paris Pick-up Network (www.balijieji.com) editor offers </div>
</body>
Cool three-leaf spin effect around mouse rotation