Silahkan copy dan paste pada notepad or lainnya script di bawah ini untuk mempercantik web anda.
<script>
var tod=new Date();
var weekday=new Array("Minggu","Senin","Selasa","Rabu","Kamis","Jum'at","Sabtu");
var monthname=new Array("Januari","Februari","Maret","April","Mei","Juni","Juli","Agustus","September","Oktober","November","Desember");
var y = tod.getFullYear();
var m = tod.getMonth();
var d = tod.getDate();
var dow = tod.getDay();
var dispTime = " " + weekday[dow] + ", " + d + " " + monthname[m] + " " + y + " ";
if (dow==0) dispTime= "<font color=red>" + dispTime + "</font>"; else if (dow==5) dispTime= "<font color=green>" + dispTime + "</font>";
else dispTime= "<font color=black>" + dispTime + "</font>";
document.write(dispTime);
</script>
var tod=new Date();
var weekday=new Array("Minggu","Senin","Selasa","Rabu","Kamis","Jum'at","Sabtu");
var monthname=new Array("Januari","Februari","Maret","April","Mei","Juni","Juli","Agustus","September","Oktober","November","Desember");
var y = tod.getFullYear();
var m = tod.getMonth();
var d = tod.getDate();
var dow = tod.getDay();
var dispTime = " " + weekday[dow] + ", " + d + " " + monthname[m] + " " + y + " ";
if (dow==0) dispTime= "<font color=red>" + dispTime + "</font>"; else if (dow==5) dispTime= "<font color=green>" + dispTime + "</font>";
else dispTime= "<font color=black>" + dispTime + "</font>";
document.write(dispTime);
</script>
Tidak ada komentar:
Posting Komentar