Javascript clock

Don’t forget to reset the offset for those using this in a daylight savings area…

Here is current version of code:

<SCRIPT LANGUAGE="JavaScript">

<!-- This script and many more are available free online at -->
<!-- The JavaScript Source!! http://javascript.internet.com -->
<!-- Modified by Tom Chaplin to make this a local time clock -->

<!-- Begin
function clock() {
var digital = new Date();
var hours = digital.getUTCHours();
var minutes = digital.getMinutes();
var seconds = digital.getSeconds();
var offset = 6 ; <!-- Offset value is 5 for CDT and 6 for CST -->

if (hours < offset)

i upgraded to 5.1 of ZA
and had heaps of trouble
big cpu use, etc,
i then did a clean install
100% better
its like a new PC!

excellent work carterlake - I give you a “sunny” for the document.getElementById(‘pendule’).innerHTML making things work in Mozilla/Firefox with which I was able to modify a countdown script on my weather pages :slight_smile:

Hey thanks!

Took me a bit to figure out what was wrong and how to fix it. I guess it has to do with frames security.

Time to change your offsets for those using this script.