<div id="clock">Loading...</div> <script type="text/javascript"> function refrClock() { var d=new Date(); var s=d.getSeconds(); var m=d.getMinutes(); var h=d.getHours(); var day=d.getDay(); var date=d.getDate(); var month=d.getMonth(); var year=d.getFullYear(); var days=new Array("Pazar","Pazartesi","Salı","Çarşamba","Perşembe","Cuma","Cumartesi"); var months=new Array("Ocak","Şubat","Mart","Nisan","Mayıs","Haziran","Temmuz","Ağustos","Eylül","Ekim","Kasım","Aralık"); var am_pm; if (s<10) {s="0" + s} if (m<10) {m="0" + m} if (h<10) {h="0" + h} if (h>12) {h-=12;am_pm = "PM"} else {am_pm = "AM"} document.getElementById("clock").innerHTML=days[day] + " | " + date + " " + months[month] + " , " + year + " | " + h + ":" + m + ":" + s + " " + am_pm; setTimeout("refrClock()",1000); } refrClock(); </script>