Обычные часы

<html>
<head>
<title>Время.</title>
<script language="JavaScript">
<!--
ndata = new Date();
hours = ndata.getHours();
mins = ndata.getMinutes();
secs = ndata.getSeconds();
if (hours < 10) {hours = "0" + hours }
if (mins < 10) {mins = "0" + mins }
if (secs < 10) {secs = "0" + secs }
datastr = ( hours + ":" + mins + ":"+secs )
-->
</script>
</head>
<body>
<font face="Arial" size="3" color="#b00000">
<script language="JavaScript">
<!--
document.write(datastr);
-->
</script>
</font>
</body>
</html>

Hosted by uCoz