Log in

View Full Version : Image Map Script



MuMu
05-13-2007, 09:30 PM
I need a script- or an idea on how to do something like this.

I have a picture, a country map (of USA, let's say)... and I want all the major states DOTED so they can be more visible.
The thing I want is... when my mouse is over that DOT - a tooltip should appear with some info about that state (i should be able to enter the info txt - max 10 words).

Does anyone have any ideas or... can anyone point me to some examples, or... can anyone help me!? :)

Thx

Veronica
05-14-2007, 02:04 PM
You can use the tooltip script here:

http://www.dynamicdrive.com/dynamicindex5/dhtmltooltip.htm

To use it with an imagemap, just add the mouseover/mouseout info to your map:

<AREA SHAPE="RECT" COORDS="10, 10, 135, 138"
onMouseover="ddrivetip('JavaScriptKit.com JavaScript tutorials','yellow', 300)";
onMouseout="hideddrivetip()">