Here is an example of a digital clock:
Code:
<html>
<head>
<title>An example of a clock</title>
<script language="javascript" type="text/javascript">
<!--
var dateform
speed=1000
tid = 0;
function dodate()
{
f.date.value=new Date();
tid=window.setTimeout("dodate()",speed);
}
function start(x) {
f=x
tid=window.setTimeout("dodate()",speed);
}
function cleartid() {
window.clearTimeout(tid);
}
-->
</script>
</head>
<body onload="start(document.dateform) ;" >
<center>
Digital Clock
<FORM name="dateform" action="post">
<input type="text" name="date" size=30>
</FORM>
</center>
</body>
</html>
You can place it anywhere on your page.