Laman

Selasa, 17 Agustus 2010

Jam di Status Bar



function Clock() {

window.setTimeout( "Clock()", 1000 );

now = new Date();
localtime = now.toString();
hours = now.getHours();
mins = now.getMinutes();
secs = now.getSeconds();
if (hours > 12)
hours = now.getHours()-12;
self.status = "Jam " + hours + " Lewat " + mins + " Menit, " + secs + " Detik ".toString();

}
Clock()