Click to See Complete Forum and Search --> : icon that follows the mouse icon


DavidAlan
11-18-2003, 01:05 AM
Hello,
I am keen to put an icon to follow my mouse icon around similar to the one at this site, but only one not the four that this represents

http://javascript.internet.com/miscellaneous/eyes.html#source

I have been unable to figure out how to modify this one and wonder if there is some one who can help; or alternatively direct me to some script that I could use.

I just want to have one image follow the mouse pointer around.

Many thanks
David

Khalid Ali
11-18-2003, 07:15 AM
how hard it is to remove images from the code so that thre is only one image left in the code?????

The part of the code below is the one you need to concentrate,remove one entry of pupil and one entry of white

s = '<DIV ID ="dummy" STYLE="position:absolute; ' +
'top:'+y+'; left:'+x+'; width:10; height:10;"> </DIV>';
s += '<DIV ID="eyeballs" STYLE="position:absolute; ' +
'top:'+y+'; left:'+x+'; width:80; height:40;"><IMG SRC=' +
'"whites.gif" border=0></DIV>';
s += '<DIV ID="lefteye" STYLE="position:absolute; ' +
'top:'+(y+10)+'; left:'+(x+10)+'; width:20; height:20;">' +
'<IMG SRC="pupil.gif" border=0></DIV>';
s += '<DIV ID="righteye" STYLE="position:absolute; ' +
'top:'+(y+10)+'; left:'+(x+50)+'; width:20; height:20;">' +
'<IMG SRC="pupil.gif" border=0></DIV>';

DavidAlan
11-18-2003, 06:09 PM
Many thanks, I am learning but do not want to should about that.
The guidance to the area to concentrate on is appreciated

enjoy
David