Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Javascript > mouseover link image appears next to cursor

Reply
Thread Tools

mouseover link image appears next to cursor

 
 
Woody
Guest
Posts: n/a
 
      02-24-2005
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

 
Reply With Quote
 
 
 
 
Woody
Guest
Posts: n/a
 
      03-10-2005
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

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
how to tell if cursor is sqlite.Cursor or psycopg2.Cursor dmaziuk Python 3 01-25-2011 04:52 AM
Declare Cursor error while implementing SCROLL CURSOR invy C Programming 4 12-28-2006 02:35 PM
Changing DEFAULT cursor to WAIT cursor in ASP =?Utf-8?B?VG9tYXMgS2VwaWM=?= ASP .Net 1 04-05-2005 07:42 PM
CurrentElement->next = CurrentElement->next->next (UNDEFINED?) Deniz Bahar C Programming 2 03-09-2005 12:45 AM
Custom cursor on mouseover of mapped link Simon Wigzell Javascript 3 03-04-2005 04:32 PM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57