<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title> New Document </title>
<script type="text/javascript">
function sunkeyclock(){
var Digital = new Date();
var hours = Digital.getHours();
var minutes = Digital.getMinutes();
var seconds = Digital.getSeconds();
if (minutes <= 9) {minutes = "0" + minutes;}
if (seconds <= 9) {seconds = "0" + seconds;}
myclock = hours + ":" + minutes + ":" + seconds;
clock.innerHTML = myclock;
setTimeout("sunkeyclock()",1000)
}
</script>
</head>
<body onLoad="sunkeyclock()">
<span id="clock"></span>
</body>
</html>
[/code]
|