Hello,
For my genealogical trees, I use the following JavaScript
http://www.dynamicdrive.com/dynamici...agetooltip.htm
Image w/ description tooltip
Author: Sharon Paine
Note: Updated Feb 8th, 07. Fixed positioning bug in IE that occurs when page contains a valid doctype.
Description: Move the mouse over a link and have the image of your choice plus corresponding description pop up, by using this image tooltip script. Each tooltip can have a different background color, just for aesthetics or in case the images are transparent gifs.
The code detects for window edges and keeps the tooltip inside. The tooltip moving with the mousemove is an option that can be turned off by setting the tipFollowMouse to false.
But instead of a text link as shown in the example (see Link1)
<a href="#" onmouseover="doTooltip(event,0)" onmouseout="hideTip()">Link 1</a><br>
I have replaced the text link by an area shape link of a mapped image, as follow:
<a href="#" onmouseover="doTooltip(event,0)" onmouseout="hideTip()"> <area shape="rect" coords="1870,263,1967,363" alt=""> </a>
All parameters for using mapped image were introduced correctly in the body part of html text.
These new script works correctly with IE and I appreciate it.
However, it does not work with Firefox, Opera…and Mac browsers.
You can see an example of one of mine genealogical trees at:
http://e.rzepka.free.fr/Genealogy/Barnas.php
(There is no tooltip for each person)
Have you comments or answer to the fact that the script does not work for all the browsers?
Best



Reply With Quote


Bookmarks