quote: I just wanted to mention that mac users have a problem with this clock. After the clock loads, everything after the clock code, and the clock, disappears!
I take that back. This happens when Netscape is the browser and it happens to PC and Mac users alike.
@tomic
Edited by - @tomic on 25 July 2001 21:43:15
For Netscape Do not use UTC Time. This will work with IE and Netscape both
****Step 1 ****The code below within the <head> </head> tags
function displaydatetime() { if (!document.layers && !document.all) return; var today; var timeLocal; today = new Date(); timeLocal = today.toLocaleString(); //Convert to current locale. if (document.layers) { document.layers.clockLocal.document.write(timeLocal); document.layers.clockLocal.document.close();} else if (document.all) { clockLocal.innerHTML = timeLocal; } setTimeout("displaydatetime()", 500) } window.onload = displaydatetime;
// End -->
</script> </div> </HEAD>
***** Step 2 The code below within the <body> </body> tags
You are right. I hardly look at any of them. But when I need to I don't have to change my focus. Otherwise most people also have one on their desk and one on the wrist and yet another on the wall.
function displaydatetime() { if (!document.layers && !document.all) return; var today; var timeLocal; today = new Date(); timeLocal = today.toLocaleString(); //Convert to current locale. if (document.layers) { document.layers.clockLocal.document.write(timeLocal); document.layers.clockLocal.document.close();} else if (document.all) { clockLocal.innerHTML = timeLocal; } setTimeout("displaydatetime()", 500) } window.onload = displaydatetime;
// End -->
</script> </div> </HEAD>
***** Step 2 The code below within the <body> </body> tags
The innerHTML property of a div is an IE specific thing. This won't work in Netscape either. I don't beleive even NN 6.0 supports the innerHTML property of a div.