Click here to Skip to main content
15,881,172 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I've self-studied html and css for a few weeks now, and am in the process of creating a website.

My site will contain an image map, and I want that map to show text when the user mouses over different parts of the map.

I'm currently relying on the 'title' attribute to display the text as a tooltip, but there's a delay between the mouse-over and the text appearing.

If you have some way to make the text appear immediately on the mouse-over, that would be sufficient.
Going the extra mile would be finding some way to customize how the text is displayed on mouse-over (i.e. fonts, background colour, box border). I've seen this on the site: www.milliondollarhomepage.com , but that might be too complex for me to understand.

Help is appreciated :)
Posted
Updated 15-Jul-15 20:04pm
v2

1 solution

If there are no different objects which could generate a MouseHover I know only one way to realize that :
You have to calculate the different Areas on your map in which you want to have an Event. Now you have to check during the MouseMove if the MousePosition is inside one of your defined Areas and if Yes do what you want to do at this Position.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900