|
<html>
<head>
<title></title>
<SCRIPT LANGUAGE="JavaScript">
<!--
preImage = new Array(13);
for(i=0;i<13;i++)
{
preImage[i] = new Image();
preImage[i].src = "images/"+i+".gif";
}
timerID = 10;
function clock()
{
if (document.images)
{
ct = new Date();
ap = ct.getHours();
hh = ct.getHours();
if(hh > 12){
hh = hh - 12};
h = "0"+hh;
m = "0"+ct.getMinutes();
s = "0"+ct.getSeconds();
h = h.substring(h.length-2,h.length+1);
m = m.substring(m.length-2,m.length+1);
s = s.substring(s.length-2,s.length+1);
h0 = h.substring(0,1);
h1 = h.substring(1,2);
m0 = m.substring(0,1);
m1 = m.substring(1,2);
s0 = s.substring(0,1);
s1 = s.substring(1,2);
if(ap < 13){
document.AP.src="images/10.gif"
}else{
document.AP.src="images/11.gif"};
document.H0.src="images/"+h0+".gif";
document.H1.src="images/"+h1+".gif";
document.M0.src="images/"+m0+".gif";
document.M1.src="images/"+m1+".gif";
document.S0.src="images/"+s0+".gif";
document.S1.src="images/"+s1+".gif";
clearTimeout(timerID);
timerID = setTimeout('clock()',1000);
}
}
// -->
</SCRIPT>
</head>
<BODY onLoad="setTimeout('clock()',1000)">
<IMG SRC="images/10.gif" width="25" height="50"
name="AP"
><IMG SRC="images/0.gif" width="25" height="50"
name="H0"
><IMG SRC="images/0.gif" width="25" height="50"
name="H1"
><IMG SRC="images/12.gif" width="25" height="50"
><IMG SRC="images/0.gif" width="25" height="50"
name="M0"
><IMG SRC="images/0.gif" width="25" height="50"
name="M1"
><IMG SRC="images/12.gif" width="25" height="50"
><IMG SRC="images/0.gif" width="25" height="50"
name="S0"
><IMG SRC="images/0.gif" width="25" height="50"
name="S1"
>
</body>
</html>
|