< language="">
/*
Magic Wand cursor II (By Kurt at
[email protected])
Modified and permission granted to Dynamic Drive to feature in archive
For full source, usage terms, and 100's more DHTML s, visit
http://dynamicdrive.com
*/
if (.all){
with (){
write('
')
write('
')
write('
')
write('
')
write('
')
write('
')
write('
')
write('
')
write('
')
write('
')
write('
')
write('
')
write('
')
write('
')
write('
')
write('
')
}
}
if (.layers)
{window.captureEvents(Event.MOUSEMOVE);}
var yBase = 200;
var xBase = 200;
var step = 1;
var currStep = 0;
var Xpos = 1;
var Ypos = 1;
if (.all)
{
function MoveHandler(){
Xpos = .body.scrollLeft+event.x;
Ypos = .body.scrollTop+event.y;
}
.onmousemove = MoveHandler;
}
else if (.layers)
{
function xMoveHandler(evnt){
Xpos = evnt.pageX;
Ypos = evnt.pageY;
}
window.onMouseMove = xMoveHandler;
}
function animateLogo() {
if (.all)
{
yBase = window..body.offsetHeight/6;
xBase = window..body.offsetWidth/6;
}
else if (.layers)
{
yBase = window.innerHeight/8;
xBase = window.innerWidth/8;
}
if (.all)
{
for ( i = 0 ; i < starsDiv.all.length ; i++ )
{
starsDiv.all[i].style.top = Ypos + yBase*Math.sin((currStep + i*4)/12)*Math.cos(400+currStep/200);
starsDiv.all[i].style.left = Xpos + xBase*Math.sin((currStep + i*3)/10)*Math.sin(currStep/200);
}
}
else if (.layers)
{
for ( j = 0 ; j < 14 ; j++ ) //number of NS layers!
{
var templayer="a"+j
.layers[templayer].top = Ypos + yBase*Math.sin((currStep + j*4)/12)*Math.cos(400+currStep/200);
.layers[templayer].left = Xpos + xBase*Math.sin((currStep + j*3)/10)*Math.sin(currStep/200);
}
}
currStep+= step;
setTimeout("animateLogo()", 10);
}
animateLogo();
>
على
الرحب والسعة
اخوكم - وافي -vvafl