Kod:
<BODY onLoad="loadclock()" topmargin="6" leftmargin="0" bgcolor="#000080" text="#FFFF00" link="#FFFFFF" vlink="#C0C0C0" alink="#FF0000">
<script>
<!--
// web-tasarim hizmetleri --> WwW.AteSh.Net
function show2(){
var Digital=new Date()
var hours=Digital.getHours()
var minutes=Digital.getMinutes()
var seconds=Digital.getSeconds()
var dn="AM"
if (hours>12){
dn="PM"
hours=hours-12
}
if (hours==0)
hours=12
if (minutes<=9)
minutes="0"+minutes
if (seconds<=9)
seconds="0"+seconds
var ctime="<b><font face='Verdana' color='red'>"+hours+":"+minutes+":"+seconds+" "+dn+"</font></b>"
if (!document.all)
document.write(ctime)
else
tick2.innerHTML=ctime
}
function loadclock(){
if (document.all)
setInterval("show2()",1000)
}
if (!document.all)
show2()
//-->
</script>
<!-- Bu satirinn konumu, saatin de konumunu belirler -->
<p align="center"><span id=tick2></span></p>