View Full Version : Certain mouse coordinates = popup window - Help!
tlitten
03-07-2011, 11:41 PM
So I have been assigned a task. I had a floor plan with all the room numbers and I was asked to make it to where when you hover your mouse over the certain room number, it pops up the persons credentials. And I for some reason have brain blockage...
Any ideas on how to go about doing this? Surely its simple. Many thanks.
djr33
03-08-2011, 12:08 AM
It depends on how complicated it should be.
The easiest way will be to use an image map and to setup areas, each of which is the region for a certain number. Use the onmouseover event for this area and create some Javascript function that will display the credentials as you want.
It would be possible to avoid image maps (since they can be a bit annoying), but that would mean either converting the image into HTML (make the numbers text links and place images around it, or perhaps a single image as a background); or you could use Javascript to detect the coordinates of the mouse onmouseover for the image-- but that seems like the hardest option.
You could also approach this using Flash.
Powered by vBulletin® Version 4.2.2 Copyright © 2021 vBulletin Solutions, Inc. All rights reserved.