Home
Image Effects
Image Galleries
and Viewers
Here
|
Categories
Other Sections
Sweet Ads
Compatibility
|
|
FF1+ IE6+ Opr8+
Image w/ description tooltip v2.0 Author:
Dynamic Drive
Note: Script completely rewritten April 25th 2010, named version 2.0 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 is
defined inside the script then associated with an element on the page by
inserting a " The script detects for window edges and keeps each tooltip inside it. Demo: Move your mouse over any of the following links: Step 1: Insert the below script into the <head> section of your page: The above code references two external files which you should download below (right click, and select "Save As"):
Near the top of ddimgtooltip.js is where you define your tooltips: tooltips[0]=["red_balloon.gif", "Here is a red balloon<br
/> on a white background", {background:"#FFFFFF", color:"black", border:"5px
ridge darkblue"}] Each tooltip's syntax should be as follows:
Where x should be an sequential integer starting from 0, with the following 1 to 3 components defined:
Step 2: Then, to associate a tooltip with a
link on your page, just give it a " Enjoy! |