Results 1 to 10 of 10

Thread: Image w/ description tooltip

  1. #1
    Join Date
    May 2005
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Question Image w/ description tooltip

    Have a problem and wonder if someone can help.

    I want http://www.dynamicdrive.com/dynamici...agetooltip.htm on a website I rebuild.

    It works excelent in Netscape but not in IE. When you scroll down, the picture comes up longer and longer from the arrow so you, at last, not can se it.

    You can check a test on www.orks.nu/ny/hastar.html
    The page is on swedish, but code is code, links don't work.

    Thanks!

  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

    This might not fix it but, this:
    Code:
    			<div id="tipDiv" style="position:absolute; visibility:hidden; z-index:500"></div>
    		</div>
    belongs right above this:
    Code:
    </body>
    You have many things between them.
    - John
    ________________________

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

  3. #3
    Join Date
    May 2005
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Hi!

    I have a similar problem and your solution didn't help me!

    It works fine in mozilla but not in IE, I'm talking about the tooltip when holding the mouse over the profile-link, it doesn't seem to follow the mouse as it should.

    I could really use some help here.

    Thanks in advance

    The link to the page is: http://sfs.lurmig.dk/echo.php

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

    It is your doctype declaration that is throwing things off. The script isn't compatible. The script can be made compatible in two steps:

    1) There are 8 occurrences of:
    Code:
    document.body
    in the script. Change all 8 to:
    Code:
    iecompattest()
    2) At the top of the script, right after the credit:
    Code:
    /*
    Image w/ description tooltip- By Dynamic Web Coding (www.dyn-web.com)
    Copyright 2002 by Sharon Paine
    Visit http://www.dynamicdrive.com for this script
    */
    put this function:
    Code:
    function iecompattest(){
    return (document.compatMode && document.compatMode.indexOf("CSS")!=-1)? document.documentElement : document.body
    }
    so it looks like this:
    Code:
    /*
    Image w/ description tooltip- By Dynamic Web Coding (www.dyn-web.com)
    Copyright 2002 by Sharon Paine
    Visit http://www.dynamicdrive.com for this script
    */
    
    function iecompattest(){
    return (document.compatMode && document.compatMode.indexOf("CSS")!=-1)? document.documentElement : document.body
    }
    
    /* IMPORTANT: Put script after tooltip div or 
    	 put tooltip div just before </BODY>. */
    That's it.
    - John
    ________________________

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

  5. #5
    Join Date
    May 2005
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Thank you so much

    Now it's working perfectly

    You're a lifesaver =)

  6. #6
    Join Date
    May 2005
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Thumbs up

    Thanks so very mutch, I'm so happy that it works.


  7. #7
    Join Date
    Aug 2004
    Posts
    10,143
    Thanks
    3
    Thanked 1,008 Times in 993 Posts
    Blog Entries
    16

    Default

    Thanks jscheuer1 for the remindar on the doctype issue. Adding this script to the list of "to fix" scripts for doctype.

  8. #8
    Join Date
    Jan 2005
    Posts
    8
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    hi

    i have the problem that the tooltip window is behind other frames...

    do you have some ideas for an solution?

    thx

  9. #9
    Join Date
    Aug 2004
    Posts
    10,143
    Thanks
    3
    Thanked 1,008 Times in 993 Posts
    Blog Entries
    16

    Default

    something4u, there's no way for this script to display the tooltip across frames unfortunately.

  10. #10
    Join Date
    Aug 2005
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    I had the same problem with horizontal scrolling. The fix above worked great!!

    THANKS!

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
  •