now = new Date();
var hours = now.getHours();
var nute
s = now.getMinutes();
var seds = now.getSeds()
var tiValue = "" + ((hours &12) ? hours -12 :hours)
tiValue += ((nutes &; 10) ? ":0" : ":") + nutes
tiValue += ((seds &; 10) ? ":0" : ":") + seds
tiValue += (hours &= 12) ? " P.M." : " A.M."
dot.clock.face.value = tiValue;
tirID = setTiout("showti()",1000);
tirRunning = true;
}
fun startclobsp; ()
{ stopclock();
showti();
}
//--&
(2)在〈Body〉属性中加 onLoad="startclock()"
(3)在〈Body〉〈/Body〉中间加
即可。