/    Sign up×
Community /Pin to ProfileBookmark

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!

to post a comment
JavaScript

3 Comments(s)

Copy linkTweet thisAlerts:
@gil_davisNov 21.2002 — 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.
Copy linkTweet thisAlerts:
@SSC_FahdNov 25.2002 — I believe he/she is referring to this clock:

http://javascript.internet.com/clocks/universal-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
Copy linkTweet thisAlerts:
@gil_davisNov 26.2002 — 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

[font=courier]document.getElementById("clockLocal").innerHTML[/font]

and

[font=courier]document.getElementById("clockUTC").innerHTML[/font]

to change the data in the clock.

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

[font=courier]... id="..." ...[/font]
×

Success!

Help @bcsd spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.3,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,

tipper: @Samric24,
tipped: article
amount: 1000 SATS,
)...