<SCRIPT LANGUAGE="JavaScript">
|
var timerID = null; // setTimeout handle
|
var running = false;
|
function stopclock() {
-
if ( running ) clearTimeout(timerID);
-
running = false;
|
}
|
function startclock() {
|
}
|
function showtime() {
-
// Calculate and display current time:
-
document.clock.face.value = timeValue;
-
// Timeout for one second:
-
timerID = setTimeout("showtime()", 1000);
-
running = true;
|
}
|
</SCRIPT>
|