Results 1 to 3 of 3

Thread: image w/description tooltip... help!!!

  1. #1
    Join Date
    Apr 2007
    Posts
    26
    Thanks
    2
    Thanked 0 Times in 0 Posts

    Default image w/description tooltip... help!!!

    1) Script Title: image w/description tooltip

    2) Script URL (on DD): http://www.dynamicdrive.com/dynamici...agetooltip.htm

    3) Describe problem:
    I've looked at all postings regarding this script not working but I still can't get it to work!! Nothing happens on mouseover.

    Please see the page here: http://www.inkbytedesign.com/LID/press.html

    Thanks in advance.

  2. #2
    Join Date
    Feb 2007
    Posts
    293
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    I changed a few things and got it to work.

    First, move the script for the tooltip to the END of your file, just before the </html> With the way you have the tooltip div set up, the script has to come AFTER it.

    Then, you need to change each link in your your html code to this format:
    Code:
    <td valign="top"><div align="right"><a href="#" onMouseOver="doTooltip(event,0)" onMouseOut="hideTip()"><img src="http://www.inkbytedesign.com/LID/images/press/picture-001.jpg" width="102" height="126" border="0" /></a></div></td>
    Right now, you have it like this
    Code:
    <td valign="top"><div align="right"><a href="#" onMouseOver="doTooltip(event, messages[0] )" onMouseOut="hideTip()"><img src="images/press/picture-001.jpg" width="102" height="126" border="0" /></a></div></td>
    Finally, in your javascript, you need to add the rest of the content that the script calls for (otherwise, you'll get an undefined). You can change the copy and the background color.

    Code:
    messages[0] = new Array('http://www.inkbytedesign.com/LID/images/press/picture-001.jpg','Here is a duck on a light blue background.',"#DDECFF");
    You would do that for each picture.

  3. #3
    Join Date
    Apr 2007
    Posts
    26
    Thanks
    2
    Thanked 0 Times in 0 Posts

    Default

    Thanks for your help. I had already decided to use a different DD script. I like how it looks better. But thanks anyway.

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
  •