OZONE Asylum
Forums
DHTML/Javascript
get mouse location on image while mousemove
This page's ID:
30337
Search
QuickChanges
Forums
FAQ
Archives
Register
Edit Post
Who can edit a post?
The poster and administrators may edit a post. The poster can only edit it for a short while after the initial post.
Your User Name:
Your Password:
Login Options:
Remember Me On This Computer
Your Text:
Insert Slimies »
Insert UBB Code »
Close
Last Tag
|
All Tags
UBB Help
I have an image that I am creating with PHP and GD. It's composed of cells, so you can think of it like a table or calender. What I want is to show different tooltip text based on the cell that the mouse is hovering. I found a bunch of javascript tooltip samples, but they all only support one tooltip per element. On mousemove, if I can get mouseX and mouseY, i can calculate what cell is being hovered. Knowing that I can grab that cell's text. So what I don't know is: (1) How do I get mouse location on an image on mousemove? All I found was related to image maps and clicking. Do I have to use an image map? ( Because I'd prefer being able to just hover without clicking. ) thanks, -- monkey [small](Edited by [url=http://www.ozoneasylum.com/user/4678]ninmonkeys[/url] on 06-17-2008 01:58)[/small]
Loading...
Options:
Enable Slimies
Enable Linkwords
« Backwards
—
Onwards »