Bruce Gust
asked on
Tooltip within an Imagemap
Here's an example of the tooltip script that I typically use:
I need to create a tooltip over each state of a map of the US. As a user mouses over each state, a tooltip needs to pop up that will be grabbing info from a database and displaying information about that particular state, so...
How can I adopt what I'm already using and have that tooltip apply to a set of x and y coordinates as opposed to an image? Or, am I better off using a different approach?
<a class="tip_trigger" href="download_execute.php"><IMG SRC="images/duns.jpg" border="0"><span class="tip">
<table width="300" height="100" bgcolor="white">
<tr>
<td>
<b>Data Universal Numbering or DUNS# is a unique 9-digit numbers issued by Dun and Bradstreet. The federal government's Office of Management & Budget has adopted the use of DUNS numbers as a way to keep track of how federal grant money is awarded and dispersed.
<P>
Central Contractor Registration or CCR# (also known as CAGE Code) is a five code number that identifys entities who are authorized to do business with the federal government.</b>
</td>
</tr>
</table>
</span></a>
I need to create a tooltip over each state of a map of the US. As a user mouses over each state, a tooltip needs to pop up that will be grabbing info from a database and displaying information about that particular state, so...
How can I adopt what I'm already using and have that tooltip apply to a set of x and y coordinates as opposed to an image? Or, am I better off using a different approach?
ASKER
Gary, I can trace the logic of your suggestion, but I'm not grasping the application.
If I've got:
<a class="tip_trigger" href="download_execute.php "><IMG SRC="images/duns.jpg" border="0"><span class="tip">my tooltip content</span></a>
Where am I going to put my <area shape="polygon" coords="" href="my_display.php">?
Where would all that stuff go?
If I've got:
<a class="tip_trigger" href="download_execute.php
Where am I going to put my <area shape="polygon" coords="" href="my_display.php">?
Where would all that stuff go?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
You can then dynamically set the tooltip content when you mouseover though I think it would be better to use load the data at the server - there may be too much of a delay calling the data from the server as you mouseover.