PDA

View Full Version : Image w/ description tooltip help please



sassysarah
05-11-2007, 08:19 PM
1) Script Title: Image w/ description tooltip

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

3) Describe problem:
I have loaded the script for an image gallery. And installed using Dreamweaver...not good enough on the html to not use DW.

now I have updated like so

messages[0] = new Array('img src="http://www.creations4u.co.uk/webpics/luckydevilspreview.gif"');
messages[1] = new Array('img src="webpics/xclusive.gif"');

now i thought maybe it should have the URL in front of it but that didnt work either as you can see I have tried it both ways.

and the other part of the script like so:

<a href="http://www.luckydevilshollywood.com/" onmouseover="doTooltip(event,0)" onmouseout="hideTip()"><strong>Lucky Devils</strong></a> <a>Web Site under redevelopement to replace existing site.</a><br>
<a href="http://www.xclusivejet.com/" onmouseover="doTooltip(event,1)" onmouseout="hideTip()"><strong>Xclusive Jet & Charter Management</strong></a> <a>Web site</a>

when i view in my browser (IE) and when i run my mouse over the site name it brings up the box i want but has the picture as a red x with the words undefined in it.

I have loaded my page even with these errors (eek) and you can see it for yourself here http://www.creations4u.co.uk/portfolio.htm

any ideas what i am doing wrong??

please help pulling my hair out here and just know its something simple but cannot figure out what.
Oh and please be easy with me..techno words only confuzzle my brain more lol lol lol

huggles
Sassy Sarah

jscheuer1
05-12-2007, 02:49 AM
You should follow the template for the array entries (from the demo):


messages[0] = new Array('red_balloon.gif','Here is a red balloon on a white background',"#FFFFFF");

This means that instead of having something like so (from your source code):


messages[0] = new Array('img src="http://www.creations4u.co.uk/webpics/luckydevilspreview.gif"');

It should look more like so:


messages[0] = new Array('http://www.creations4u.co.uk/webpics/luckydevilspreview.gif','Lucky Devils Preview',"#FFFFFF");

sassysarah
05-12-2007, 10:34 AM
Oh my god that simple huh!
Thank you soooooooo much you are a life saver!!!
big smoochies kisses to you!!!
xxx
Sarah :D