Results 1 to 3 of 3

Thread: Image w/ description tooltip help please

  1. #1
    Join Date
    May 2007
    Location
    Portsmouth, UK
    Posts
    15
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Image w/ description tooltip help please

    1) Script Title: Image w/ description tooltip

    2) Script URL (on DD): http://www.dynamicdrive.com/dynamici...agetooltip.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

  2. #2
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    30,495
    Thanks
    82
    Thanked 3,449 Times in 3,410 Posts
    Blog Entries
    12

    Default

    You should follow the template for the array entries (from the demo):

    Code:
    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):

    Code:
    messages[0] = new Array('img src="http://www.creations4u.co.uk/webpics/luckydevilspreview.gif"');
    It should look more like so:

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

    Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate

  3. #3
    Join Date
    May 2007
    Location
    Portsmouth, UK
    Posts
    15
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Oh my god that simple huh!
    Thank you soooooooo much you are a life saver!!!
    big smoochies kisses to you!!!
    xxx
    Sarah

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •