mouseover link image appears next to cursor

W

Woody

i need to know how to make a preloaded image appear next to the cursor
when i mouseover a link...

can anyone help me?

it is preferred, if you can, that maybe a table appears, next to the
cursor, with three or so images in the table...

any suggestion or links are much appreciated!!

thanks guys!

-woody
 
W

Woody

well, i feel let down :(
i found it eventually.
here it is for those of you who had no idea what i was asking about and
for those who knew what i was asking about just didn't know how to help
AND for those of you who might actually want to use this cool feature.


var IE = document.all?true:false

if (!IE) document.captureEvents(Event.MOUSEMOVE)

document.onmousemove = getMouseXY;

var tempX = 0
var tempY = 0

function getMouseXY(e) {
if (IE) { // grab the x-y pos.s if browser is IE
tempX = event.clientX + document.body.scrollLeft
tempY = event.clientY + document.body.scrollTop}
else { // grab the x-y pos.s if browser is NS
tempX = e.pageX
tempY = e.pageY}
if (tempX < 0){tempX = 0}
if (tempY < 0){tempY = 0}}

function follower(s, e){
var followX = tempX - 190;
var followY = tempY + 25;
e.style.left = followX;
e.style.top = followY;
s.onmouseover = function(){
e.style.display = "";}
s.onmouseout = function(){
e.style.display = "none";}}

thanks anywho!
-woody
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,744
Messages
2,569,483
Members
44,901
Latest member
Noble71S45

Latest Threads

Top