Mouse Pointer 1

3 Feb

<META content=”MSHTML 5.00.2314.1000″ name=GENERATOR></HEAD>
<BODY aLink=#ffffff bgColor=#0d006a link=#ffffff onunload=popwindow()
text=#e769f0 vLink=#ffc0ff><LAYER CLIP=”0,0,1,1″ BGCOLOR=”#ffffff”
VISIBILITY=”SHOW” TOP=”10″ LEFT=”10″ NAME=”a0″></LAYER><LAYER CLIP=”0,0,1,1″
BGCOLOR=”#fff000″ VISIBILITY=”SHOW” TOP=”10″ LEFT=”10″ NAME=”a1″></LAYER><LAYER
CLIP=”0,0,1,1″ BGCOLOR=”#ffa000″ VISIBILITY=”SHOW” TOP=”10″ LEFT=”10″
NAME=”a2″></LAYER><LAYER CLIP=”0,0,1,1″ BGCOLOR=”#ff00ff” VISIBILITY=”SHOW”
TOP=”10″ LEFT=”10″ NAME=”a3″></LAYER><LAYER CLIP=”0,0,1,1″ BGCOLOR=”#00ff00″
VISIBILITY=”SHOW” TOP=”10″ LEFT=”10″ NAME=”a4″></LAYER><LAYER CLIP=”0,0,1,1″
BGCOLOR=”#FF00FF” VISIBILITY=”SHOW” TOP=”10″ LEFT=”10″ NAME=”a5″></LAYER><LAYER
CLIP=”0,0,1,1″ BGCOLOR=”#FF0000″ VISIBILITY=”SHOW” TOP=”10″ LEFT=”10″
NAME=”a6″></LAYER><LAYER CLIP=”0,0,2,2″ BGCOLOR=”#ffffff” VISIBILITY=”SHOW”
TOP=”10″ LEFT=”10″ NAME=”a7″></LAYER><LAYER CLIP=”0,0,2,2″ BGCOLOR=”#fff000″
VISIBILITY=”SHOW” TOP=”10″ LEFT=”10″ NAME=”a8″></LAYER><LAYER CLIP=”0,0,2,2″
BGCOLOR=”#ffa000″ VISIBILITY=”SHOW” TOP=”10″ LEFT=”10″ NAME=”a9″></LAYER><LAYER
CLIP=”0,0,2,2″ BGCOLOR=”#ff00ff” VISIBILITY=”SHOW” TOP=”10″ LEFT=”10″
NAME=”a10″></LAYER><LAYER CLIP=”0,0,2,2″ BGCOLOR=”#00ff00″ VISIBILITY=”SHOW”
TOP=”10″ LEFT=”10″ NAME=”a11″></LAYER><LAYER CLIP=”0,0,2,2″ BGCOLOR=”#0000ff”
VISIBILITY=”SHOW” TOP=”10″ LEFT=”10″ NAME=”a12″></LAYER><LAYER CLIP=”0,0,3,3″
BGCOLOR=”#FF0000″ VISIBILITY=”SHOW” TOP=”10″ LEFT=”10″ NAME=”a13″></LAYER>
<SCRIPT language=JavaScript>

/*

Magic Wand cursor (By Kurt at kurt.grigg@virgin.net)

Modified and permission granted to Dynamic Drive to feature script in archive

For full source, usage terms, and 100’s more DHTML scripts, visit http://dynamicdrive.com

*/

if (document.all){

with (document){

write(‘<div id=”starsDiv” style=”position:absolute;top:0px;left:0px”>’)

write(‘<div style=”position:relative;width:1px;height:1px;background:#ffffff;font-size:1px;visibility:visible”></div>’)

write(‘<div style=”position:relative;width:1px;height:1px;background:#fff000;font-size:1px;visibility:visible”></div>’)

write(‘<div style=”position:relative;width:1px;height:1px;background:#ffa000;font-size:1px;visibility:visible”></div>’)

write(‘<div style=”position:relative;width:1px;height:1px;background:#ff00ff;font-size:1px;visibility:visible”></div>’)

write(‘<div style=”position:relative;width:1px;height:1px;background:#00ff00;font-size:1px;visibility:visible”></div>’)

write(‘<div style=”position:relative;width:1px;height:1px;background:#0000ff;font-size:1px;visibility:visible”></div>’)

write(‘<div style=”position:relative;width:1px;height:1px;background:#FF0000;font-size:1px;visibility:visible”></div>’)

write(‘<div style=”position:relative;width:2px;height:2px;background:#ffffff;font-size:2px;visibility:visible”></div>’)

write(‘<div style=”position:relative;width:2px;height:2px;background:#fff000;font-size:2px;visibility:visible”></div>’)

write(‘<div style=”position:relative;width:2px;height:2px;background:#ffa000;font-size:2px;visibility:visible”></div>’)

write(‘<div style=”position:relative;width:2px;height:2px;background:#ff00ff;font-size:2px;visibility:visible”></div>’)

write(‘<div style=”position:relative;width:2px;height:2px;background:#00ff00;font-size:2px;visibility:visible”></div>’)

write(‘<div style=”position:relative;width:2px;height:2px;background:#0000ff;font-size:2px;visibility:visible”></div>’)

write(‘<div style=”position:relative;width:3px;height:3px;background:#FF0000;font-size:3px;visibility:visible”></div>’)

write(‘</div>’)

}

}

var Clrs=new Array(6)

Clrs[0]=’ff0000′;

Clrs[1]=’00ff00′;

Clrs[2]=’000aff’;

Clrs[3]=’ff00ff’;

Clrs[4]=’fff000′;

Clrs[5]=’fffff0′;

if (document.layers)

{window.captureEvents(Event.MOUSEMOVE);}

var yBase = 200;

var xBase = 200;

var step;

var currStep = 0;

var Xpos = 1;

var Ypos = 1;

if (document.all)

{

function MoveHandler(){

Xpos = document.body.scrollLeft+event.x;

Ypos = document.body.scrollTop+event.y;

}

document.onmousemove = MoveHandler;

}

else if (document.layers)

{

function xMoveHandler(evnt){

Xpos = evnt.pageX;

Ypos = evnt.pageY;

}

window.onMouseMove = xMoveHandler;

}

function animateLogo() {

if (document.all)

{

yBase = window.document.body.offsetHeight/4;

xBase = window.document.body.offsetWidth/4;

}

else if (document.layers)

{

yBase = window.innerHeight/4;

xBase = window.innerWidth/4;

}

if (document.all)

{

for ( i = 0 ; i < starsDiv.all.length ; i++ )

{step=3;

starsDiv.all[i].style.top = Ypos + yBase*Math.cos((currStep + i*4)/12)*Math.cos(0.7+currStep/200);

starsDiv.all[i].style.left = Xpos + xBase*Math.sin((currStep + i*3)/10)*Math.sin(8.2+currStep/400);

for (ai=0; ai < Clrs.length; ai++)

{

var c=Math.round(Math.random()*[ai]);

}

starsDiv.all[i].style.background=Clrs[c];

}

}

else if (document.layers)

{

for ( j = 0 ; j < 14 ; j++ ) //number of NS layers!

{step = 4;

var templayer=”a”+j

document.layers[templayer].top = Ypos + yBase*Math.sin((currStep + j*4)/12)*Math.cos(0.7+currStep/200);

document.layers[templayer].left = Xpos + xBase*Math.sin((currStep + j*3)/10)*Math.sin(8.2+currStep/400);

for (aj=0; aj < Clrs.length; aj++)

{

var c=Math.round(Math.random()*[aj]);

}

document.layers[templayer].bgColor=Clrs[c];

}

}

currStep+= step;

setTimeout(“animateLogo()”, 10);

}

animateLogo();

// –>

</SCRIPT>

Demo:
mouse-pointer-1.txt

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: