
Home
Image Effects
Image Galleries
and Viewers
Here
|
Categories
Partners
DaniWeb is an exciting community for web developers, Internet marketers, and technology enthusiasts.
Other Sections
Compatibility
|
|
FF1+ IE5+ Opr7+
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. Demo: Move your mouse over any of the following links: Step 1: Insert the below script into the <head> section of your page: Step 2: Then, set up your links to contain the necessary onMouseover and out attributes. Use the following code as an example, where 0 and 1 refer to the image tooltip's index number in the script above that you wish to invoke : Enjoy! |