Status Bar Clock
1: <!-- STEP ONE: Put this code into the HEAD of your HTML document -->
2:
3: <HEAD>
4: <SCRIPT LANGUAGE="JavaScript">
5: <!-- Original: Francis Woodhouse (francis@contessa.u-net.com) -->
6: <! >
7: <! >
8: <!-- Begin
9: function runClock() {
10: theTime = window.setTimeout("runClock()", 1000);
11: var today = new Date();
12: var display= today.toLocaleString();
13: status=display;
14: }
15: // End -->
16: </SCRIPT>
17:
18: <!-- STEP TWO: Put this code onLoad event handler in the BODY tag -->
19:
20: <body onLoad="runClock()">
Related posts:
Related posts brought to you by Yet Another Related Posts Plugin.
Tags: clock, status bar
