Results 1 to 5 of 5

Thread: Cool DHTML Tooltip II w/image maps on IE

  1. #1
    Join Date
    Jan 2007
    Posts
    17
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Cool DHTML Tooltip II w/image maps on IE

    1) Script Title: Cool DHTML Tooltip II

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

    3) Describe problem: I am using Cool DHTML Tooltip II with an image map and it works fine on Firefox but not on IE6. Is there a fix or something that can be done for IE? Thanks.
    Here is the page I'm using it on: http://www.ctmooseassoc.com/map.htm

  2. #2
    Join Date
    Sep 2006
    Location
    St. George, UT
    Posts
    2,769
    Thanks
    3
    Thanked 157 Times in 155 Posts

    Default

    It appears that in your source, you call the script the with the wrong arguments.

    This is how you call it:

    Code:
     <area shape="rect" coords="191,394,211,416" href="javascript:;" onMouseover="ddrivetip('Family Center 289, 44 Dodge Ave, Stratford, CT. 06615','yellow', 300)"; onMouseout="hideddrivetip()"/>
    When it should actually be something like this:

    Code:
     <area shape="rect" coords="191,394,211,416" href="javascript:;" onMouseover="ddrivetip('Family Center 289, 44 Dodge Ave, Stratford, CT. 06615', 300, 'yellow');" onMouseout="hideddrivetip();">
    The ddrivetip function is like this:
    Code:
    function ddrivetip(thetext, thewidth, thecolor)
    so when you were calling it before, "thewidth" was being assigned as yellow and "thecolor" was being assigned as 300, instead of the other way around.

    Anyways, hope this helps.
    "Computer games don't affect kids; I mean if Pac-Man affected us as kids, we'd all be running around in darkened rooms, munching magic pills and listening to repetitive electronic music." - Kristian Wilson, Nintendo, Inc, 1989
    TheUnlimitedHost | The Testing Site | Southern Utah Web Hosting and Design

  3. #3
    Join Date
    Jan 2007
    Posts
    17
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Works like a charm! Thank you VERY much.

  4. #4
    Join Date
    Sep 2006
    Location
    St. George, UT
    Posts
    2,769
    Thanks
    3
    Thanked 157 Times in 155 Posts

    Default

    No problem, glad to hear it is working for you.
    "Computer games don't affect kids; I mean if Pac-Man affected us as kids, we'd all be running around in darkened rooms, munching magic pills and listening to repetitive electronic music." - Kristian Wilson, Nintendo, Inc, 1989
    TheUnlimitedHost | The Testing Site | Southern Utah Web Hosting and Design

  5. #5
    Join Date
    Jan 2007
    Posts
    17
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Maybe because I'm using an image map, but now I'm getting the tooltip arrow image at the very top, left of the page. I replaced it with a 1x1 spacer.gif but it's still showing a big gap when viewed in IE6. It's not displaying on the boxes down below but that's ok. Is there anyway that I can get the arrow down to the image map or just remove it altogether? Thanks.
    Last edited by btvbill; 03-08-2007 at 02:40 PM.

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
  •