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 IamaSherpa 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 use something like ToolTips with ImageMap?

Status
Not open for further replies.

Keamo

Programmer
Jan 5, 2001
2
AE
Dear reader ...
I have the following code:

<IMG SRC=&quot;C:/pic.jpg&quot;>
<MAP NAME=&quot;my_map&quot;>
<AREA SHAPE=&quot;rect&quot; COORDS=&quot;200, 100, 200, 100&quot; HREF=&quot;h.htm&quot;>
<AREA SHAPE=&quot;rect&quot; COORDS=&quot;200, 100, 200, 100&quot; HREF=&quot;b.htm&quot;>
<AREA SHAPE=&quot;rect&quot; COORDS=&quot;200, 100, 200, 100&quot; HREF=&quot;c.htm&quot;>
</MAP>

What I need exactly is to show a list of contents of some item when the mouse being over that item. It might be a tooltip or something else.

Thank you.
 
in ie you can set a title,

AREA SHAPE=&quot;rect&quot; title=&quot;unf&quot; COORDS=&quot;200, 100, 200, 100&quot; HREF=&quot;h.htm&quot;>

which should make a tooltip of whatever you put in the title attribute.

adam@aauser.com
 
I've never seen this &quot;title&quot; attribute used before, however the standard method to assign images (and parts of image maps) with alternative text (which pops up on mouseover) is to use the &quot;alt&quot; attribute:

<AREA SHAPE=&quot;rect&quot; alt=&quot;unf&quot; COORDS=&quot;200, 100, 200, 100&quot; HREF=&quot;h.htm&quot;>

You could also make visible a hidden layer with your information in it.
Sincerely,

Tom Anderson
CEO, Order amid Chaos, Inc.
 
i wasn't sure if alt would work with image maps, but, the cool thing about the title attribute, is that it can be used on anything.... so you can have alt text on a table cell for example. when moused over in ie, it shows up as a tool tip. adam@aauser.com
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top