You are viewing a post by chandra_. View all 45 posts in [hr][hr] [align=center][b]FYI.[/b] Thread ini udah lama beud sbnr nya. Cuma skrg gw rapihin aja. Biar lebih enak di liat dan gampang di cari. Dan gw minta maap sblm nya buat member yg postingan nya mu.
Tinggal ganti aza bagian yang ditebalkan dengan judul FS qta.
Teruz Copy n Paste di Bagian A di JS external qta.
Credit goes to: Lupa lagi dapet script JS ini dari Blog orang.
Maklum namanya juga ripper.
Salam kenal buadh semua ya! :rose:[/quote]
[b]Code[/b]
[spoiler]// CLOCK TITLE
function MakeArray(size)
{ this.length=size;
for(var i=1; i <= size; i++)
{ this[i]="";
}
return this;
}
function showclock()
{ var now=new Date();
var day=now.getDay();
var date=now.getDate();
var month=now.getMonth()+1;
var year=now.getYear();
var hours=now.getHours();
var minutes=now.getMinutes();
var seconds=now.getSeconds();
days=new MakeArray(7);
days[0]="Minggu";
days[1]="Senin";
days[2]="Selasa";
days[3]="Rabu";
days[4]="Kamis";
days[5]="Jum'at";
days[6]="Sabtu";
months=new MakeArray(13);
months[1]="Januari";
months[2]="Februari";
months[3]="Maret";
months[4]="April";
months[5]="Mei";
months[6]="Juni";
months[7]="Juli";
months[8]="Agustus";
months[9]="September";
months[10]="Oktober";
months[11]="Nopember";
months[12]="Desember";
var vdate="";
vdate += (days[day]) + " ";
vdate += date + " ";
vdate += (months[month]) + " ";
if (now.getYear() < 1000)
vdate += now.getYear() + 1900
else
vdate += now.getYear();
var vtime="";
vtime += ((hours < 10) ? "0" : "") + hours;
vtime += ((minutes < 10) ? ":0" : ":") + minutes;
vtime += ((seconds < 10) ? ":0" : ":") + seconds;
var vtitle="";
vtitle="[b]Nama Title Status Bar di Browser[/b]";
if (document.all || document.getElementById)
{ window.setTimeout("showclock()",1000); // update frequency
document.title = vtime+" - "+vdate+" - "+vtitle;
}
else
{ if ((seconds == 0) || (seconds == 10) || (seconds == 20) || (seconds == 30) || (seconds == 40) || (seconds == 50))
window.setTimeout("showclock()",10000)
else
window.setTimeout("showclock()",1000);
self.status = vdate+" "+vtime+" "+vtitle
}
}
showclock();[/spoiler]
Last edited by andHa (2008-07-19 04:49:32)