Results 1 to 3 of 3

Thread: Watching Eyes Script

  1. #1
    Join Date
    Nov 2004
    Location
    UK
    Posts
    19
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Watching Eyes Script

    I have this script running on my site www.davidbridgen.com

    When I scroll down the page the space between the eyes and the mouse cursor increases so that eventually they are left behind and off screen.

    I have sent email to the author but his mail box is full.

    I wonder if anyone knows how I may change the script so that the eyes and the cursor don't get separated.

    My browser is IE6.

  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

    Yet another script that needs the doctype/document.body update. Here's how:

    Do a global search and replace on the script:

    search for:

    document.body

    replace all instances with:

    iecompattest()

    Then put this function in the script, it can go just below 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
    Nov 2004
    Location
    UK
    Posts
    19
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    I have made those changes John but they haven't changed the behaviour at all.

    ...... Sorry. Yes they have. I had overlooked one instance of document.body

    Thank you.
    Last edited by dmb06851; 07-25-2005 at 09:26 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
  •