Results 1 to 4 of 4

Thread: image w/desrcription tool tip & image maps

  1. #1
    Join Date
    Jul 2006
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default [RESOLVED] image w/description tool tip & image maps

    1) Script Title: image w/description tooltip

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

    3) Describe problem:

    I've been trying to use the image w/description tooptip script with an image map, and am not having any luck. I was happy to find this thread:

    http://www.dynamicdrive.com/forums/s...ge+description

    but am still unable to find the problem with my implementation. Mousing over the live areas in the map causes the cursor to change to the link cursor, indicating that it's finding the correct area of the map, but the images do not display.

    Here's a link to a site that illustrates the situation.

    http://mywebpages.comcast.net/ths69/...popup_img.html


    This is a greatly simplified test, to be expanded and completed when/if I'm able to display the images correctly.

    Note: in the example, only the 1st, 2nd & 4th people, starting at the left end of the front row, have live areas.

    I'm new to this site and forum, and am very grateful for the service and any help you might be able to provide. Thanks!
    Last edited by cbrillow; 08-01-2006 at 02:40 PM. Reason: issue resolved

  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

    Script conflict. Here's how to get it to avoid the conflict - remove this from the script:

    Code:
    window.onload = initTip;
    Add this (red) to the body tag's onload event:

    Code:
    onLoad="init();initTip();"
    Also, the script doesn't work in Opera 9 at all, though it could.
    - John
    ________________________

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

  3. #3
    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

    To get the script to work in Opera, find these lines near the top and add the red parts:

    Code:
    var ns5 = ((window.opera||navigator.userAgent.indexOf("Gecko")>-1) && dom) ? true: false;
    var ie5 = ((navigator.userAgent.indexOf("MSIE")>-1) && dom &&!window.opera) ? true : false;
    - John
    ________________________

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

  4. #4
    Join Date
    Jul 2006
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Thanks very much for your suggestions -- I'll give it a shot first thing in the morning!

    (Edit) Heck, you went to the trouble of helping -- least I could do is to stay up a few more minutes and try it... And it worked! (haven't implemented the Opera fix yet...)


    Thanks again.
    Last edited by cbrillow; 07-31-2006 at 02:30 AM.

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
  •