Results 1 to 3 of 3

Thread: Help needed with cursor trail

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

    Default Help needed with cursor trail

    Hello,

    http://www.dynamicdrive.com/dynamici.../kisstrail.htm

    I trying to use this script (see link above), but i have problems with firefox and safari on the mac. The pictures stay in the upperleft corner.
    I can't find out why the browsers do not support the script.

    Does anybody know why?

    tnx Ian.
    Last edited by Ian Thorne; 03-01-2005 at 10:41 AM.

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

    Default hmm

    I discovered that it's works when i remove the doctype and let the page start with the <html> tag.
    but i do not why?

    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

    does anybody know why?

    tnx greetz ian.

  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

    The script needs to be updated. Change all instances of:

    document.body

    in the script to:

    iecompattest()

    Then, add this just below the credit block:
    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

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
  •