Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

how can I add tool tips to an image map

Status
Not open for further replies.

fpl9250

Programmer
Jan 22, 2007
46
US
Hello,

I need to create some hot spots within a US Map, and add tool tips to each hot spot. Does anybody have some scripts that I can use to do this? I've searched in Google and stuff but all I've found is for tool tips over text, not over images.

Thanks in advance
 
Have you tried adding a title attribute to the area tags in your imagemap? That might get you what you want.

Cheers,
Jeff


[tt]Jeff's Page [!]@[/!] Code Couch
[/tt]

Make sure your web page and css validates properly against the doctype you have chosen - before you attempt to debug a problem!

FAQ216-6094
 
the information that needs to pop up on the hot area is bigger than juts a one liner. It's address, and a small blurb. So I need to the tool tip to be a div tag or something.

help.

thanks
 
Hi, you can use the ALT tag and then you can define a css class to the map. However, this means you have to find a css tooltip-script which preferrably relies on the class="foo", not rel="foo".

It should not be very hard to find though, or somewhere else.

I can give you css code I use for "cool" alt's, but it does not support images/html, as some of the more advanced ones do.

Shout out if you want me to dig for the css code in my stylesheet.

Olav Alexander Mjelde
Admin & Webmaster
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top