dcsimg
www.webdeveloper.com
Results 1 to 4 of 4

Thread: basic clock script compatibility with netscape?

  1. #1
    Join Date
    Nov 2002
    Posts
    1

    basic clock script compatibility with netscape?

    I am using the basic clock javascript code provided from the clock section on the javascript section of this site and it is apparently incompatible with netscape. it works fine in ie, but the times just don't appear in netscape. if anyone has any comments directly related to that script, i would greatly appreciate it. otherwise, i'd like any advice you may have on netscape compatiblity. thanks!

  2. #2
    Join Date
    Nov 2002
    Posts
    4,473
    You need to be more specific. Post a link to the script you are asking about.

    You cannot expect someone to hunt for a script that *might* be the one you are asking about.

  3. #3
    Join Date
    Nov 2002
    Posts
    3

    Lightbulb

    I believe he/she is referring to this clock:

    http://javascript.internet.com/clock...sal-clock.html

    Actually I have the same problem (sort of). I messed around with a script that was based on that one, and yet I still can't figure out what makes it IE only. All the defined variables (like getUTChours) should work with non-IE browsers... so anyone else have any ideas...?

    Here's the script I was messing with:

    HTML File: http://www.btinternet.com/~fs2/temp/timezone.htm
    Java-script File (.txt): http://www.btinternet.com/~fs2/temp/timezone.txt

    I'm quite new to Java-script (I mostly mess around with Perl) so it's probably something obvious

  4. #4
    Join Date
    Nov 2002
    Posts
    4,473
    I can tell you that it won't work with NS 6+ or Mozilla. It is only set up to work on NS 4 (document.layers) and IE (document.all). To make it work on NS 6, change the browser detection and then use

    document.getElementById("clockLocal").innerHTML

    and

    document.getElementById("clockUTC").innerHTML

    to change the data in the clock.

    Also, in the SPAN tag, put quotes around the ID:

    ... id="..." ...

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center



Recent Articles