Results 1 to 2 of 2

Thread: Image w/ description tooltip

  1. #1
    Join Date
    Aug 2008
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Image w/ description tooltip

    1) Script Title: Image w/ description tooltip All [Archive] - Dynamic Drive Forums

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

  2. #2
    Join Date
    Jan 2008
    Posts
    4,168
    Thanks
    28
    Thanked 628 Times in 624 Posts
    Blog Entries
    1

    Default

    1) Make sure your messages are right:
    Code:
    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:
    Code:
    <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.
    Jeremy | jfein.net

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
  •