Results 1 to 3 of 3

Thread: Image w/ description tooltip, IExplorer

  1. #1
    Join Date
    Sep 2005
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Image w/ description tooltip, IExplorer

    Script: Image w/ description tooltip
    http://dynamicdrive.com/dynamicindex4/imagetooltip.htm

    When I use this script in Firefox (with a long list of images/links), it works just fine:
    The description table follows the mouse without a problem and very smoothly.


    But when I display the same page in IExplorer, only with the first images/links the description table follows the mouse, then it just stays in the upper part of the page (and if I continue to scroll down, the table is not visible anymore because, well, like I just said, the table stays up there).


    Is this fixable? I just read in some threads that there are bugs where the scripts run just fine on a browser (but no so fine on others, so I'm guessing this is a case like that). Thanks in advance for your help.

  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

    The script needs to be updated. Change every instance of:

    document.body

    to:

    iecompattest()

    Then add this function just above the credit:

    Code:
    function iecompattest(){
    return (document.compatMode && document.compatMode.indexOf("CSS")!=-1)? document.documentElement : document.body
    }
    - John
    ________________________

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

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

    Default

    A little late but I just haven't had the time to reply because of school...

    Thanks jscheuer1, it worked perfectly...

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
  •