Topic awaiting preservation: HELP! Project Due Tomarow! (Page 1 of 1) |
|
---|---|
Bipolar (III) Inmate From: Small Patch of Grass in CT |
posted 12-16-2002 03:19
Ok i'm freaking out because I set up a script to work in unison with an image map. When I did exactly that (as seen here) it worked fine the descriptions popped up in a little box near arrow. When I inserted the image map into a table the description box suddenly moved far away from the arrow (as seen here). How do I fix the script to make the description box position right near the arrow? My project is due in the morning and I dont know what to do! |
Maniac (V) Mad Scientist From: the bigger bedroom |
posted 12-16-2002 03:36
the popup position is created according to the sitemap object position - so if the bit that is 100 pixels across on the image is mouseovered, the little popup pops up 100 pixels across on the page. code: document.tooltip.left=e.pageX+14
|
Lunatic (VI) Mad Scientist From: Massachusetts, USA |
posted 12-16-2002 04:09
With all due respect, I'm not sure Rietsma is right: pageX and pageY should actually give you the exact location of the mouse. I think that part is right. In any case, that's just the NN4 part, and I didn't test it in NN4. |
Maniac (V) Mad Scientist From: the bigger bedroom |
posted 12-16-2002 06:14
listen to slime - i only had a quick look, and made assumptions. |
Paranoid (IV) Inmate From: Dallas, TX |
posted 12-16-2002 08:56
in this forum... everyone listens to slime. |
Bipolar (III) Inmate From: Small Patch of Grass in CT |
posted 12-16-2002 15:20
Thanks a million guys! It all worked out and I just presented it. They loved it! |
Maniac (V) Mad Scientist From: New California |
posted 12-16-2002 19:03
Glad to hear it, congrats! |