Okay, I am running into an issue the the following script. This works in chrome and IE, but not in Firefox. I have the most updated version of java and fox, as well there are no errors or warnings, as well all other java works just fine, kinda odd, but I can't seem to figure it out. Any help on this would be great, I am aiming for IE, Fox, and Chrome compat. Thanks for your time.
Code:var timeOut; function JSClock() { var now, time, app, hour, min, sec, ampm, size; now = new Date(); hour = now.getHours(now.setHours(now.getHours() + 14)); ampm = (hour >= 12) ? ' P.M.' : ' A.M.'; if (hour > 12) { hour = hour - 12; } if (hour < 10) { hour = ' ' + hour; } min = now.getMinutes(); if (min < 10) { min = '0' + min; } sec = now.getSeconds(); if (sec < 10) { sec = '0' + sec; } time = hour + ':' + min + ':' + sec + ampm; document.getElementById("time").innerText = time; timeOut = setTimeout("JSClock()", 1000); }


Reply With Quote
Bookmarks