View Full Version : Image w/ description tooltip

08-19-2008, 02:44 PM
1) Script Title: Image w/ description tooltip All [Archive] - Dynamic Drive Forums

2) Script URL (on DD): http://www.dynamicdrive.com/dynamicindex4/imagetooltip.htm

3) Describe problem: I don't seem to be able to have more than 3 mouseovers on a page. When I get to "messages[3]" I just keep getting error messages. Is there something I have to change in the script? Can anyone please help?

08-19-2008, 03:16 PM
1) Make sure your messages are right:

messages[0] = new Array('red_balloon.gif','Here is a red balloon on a white background',"#FFFFFF");
messages[1] = new Array('duck2.gif','Here is a duck on a light blue background.',"#DDECFF");
messages[2] = new Array('test.gif','Test description','black','white');

Then if you want to do the first one messages[0].
You would use this:

<a href="#" onmouseover="doTooltip(event,0)" onmouseout="hideTip()">Link 1</a>

Instead of 1, even know its the first 1 there.
Thats as far as I can help you until you give me the code for the 0th, 1st, 2nd, and 3rd tooltip.