one will have my time and the other will have their time? there will be other things on this page with it..so i can’t use something called a doc.write thing
@rigadonAug 18.2005 — #This is a fairly poor clock function I wrote a while ago. I think it will do what you're after though, with a few changes and some optimisation.You could just have two of these functions one for each of your clocks:
[CODE]<SCRIPT LANGUAGE="JavaScript"> <!-- function clock() { if (!document.layers && !document.all && !document.getElementById) { return; }
var digital = new Date();
var year = digital.getFullYear(); var mon = digital.getMonth(); var mday = digital.getDate(); var hours = digital.getHours(); var minutes = digital.getMinutes();
var month = new Array("Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec");
var amOrPm = "AM"; if (hours > 11) amOrPm = "PM"; if (hours > 12) hours = hours - 12; if (hours == 0) hours = 12; if (minutes <= 9) minutes = "0" + minutes;