Cara Memasang Kalender Sekaligus Jam Mini Di Blog
Alangkah bagusnya jika di blog kita ada waktu atau kalender..!
Selain dapat mengingatkan pengunjung dengan waktu,dapat pula mempercantik blog kita.
Berikut kiat - kiat Cara Memasang Kalender Sekaligus Jam Mini Di Blog :
1. Login ke bloger
2. Klik tata letak
3. Tambah gadget > HTML/JavaScript
4. Kopi dan pastekan kode di bawah ini :
<div style="background-color: #000000;border: 2px solid Lime;font-family: Garamond;font-size: 18px;color: lime;padding: 2px;width: 280px;text-align: center;">
<script type="text/javascript">
tday =new Array("Minggu","Senin","Selasa","Rabu","Kamis","Jum'at","Sabtu");
tmonth=new Array("January","February","Maret","April","Mei","Juni","July","Agustus","September","Oktober","November","Desember");
function GetClock(){
d = new Date();
nday = d.getDay();
nmonth = d.getMonth();
ndate = d.getDate();
nyear = d.getYear();
nhour = d.getHours();
nmin = d.getMinutes();
nsec = d.getSeconds();
if(nyear<1000) nyear=nyear+1900;
if(nhour == 0) {ap = " AM";nhour = 12;}
else if(nhour <= 11) {ap = " AM";}
else if(nhour == 12) {ap = " PM";}
else if(nhour >= 13) {ap = " PM";nhour -= 12;}if(nmin <= 9) {nmin = "0" +nmin;}
if(nsec <= 9) {nsec = "0" +nsec;}
document.getElementById('clockbox').innerHTML=" "+tday[nday]+" "+ndate+" "+tmonth[nmonth]+" "+nyear+" "+nhour+":"+nmin+":"+nsec+ap+"";
setTimeout("GetClock()", 1000);}window.onload=GetClock;</script><div id="clockbox">
</div>
</div>
5. Dan Klik save/simpan
6. Hasilnya seperti di bawah ini ;
Demikianlah Artikel kali ini,
Semoga Bermanfaat..
Selain dapat mengingatkan pengunjung dengan waktu,dapat pula mempercantik blog kita.
Berikut kiat - kiat Cara Memasang Kalender Sekaligus Jam Mini Di Blog :
1. Login ke bloger
2. Klik tata letak
3. Tambah gadget > HTML/JavaScript
4. Kopi dan pastekan kode di bawah ini :
<div style="background-color: #000000;border: 2px solid Lime;font-family: Garamond;font-size: 18px;color: lime;padding: 2px;width: 280px;text-align: center;">
<script type="text/javascript">
tday =new Array("Minggu","Senin","Selasa","Rabu","Kamis","Jum'at","Sabtu");
tmonth=new Array("January","February","Maret","April","Mei","Juni","July","Agustus","September","Oktober","November","Desember");
function GetClock(){
d = new Date();
nday = d.getDay();
nmonth = d.getMonth();
ndate = d.getDate();
nyear = d.getYear();
nhour = d.getHours();
nmin = d.getMinutes();
nsec = d.getSeconds();
if(nyear<1000) nyear=nyear+1900;
if(nhour == 0) {ap = " AM";nhour = 12;}
else if(nhour <= 11) {ap = " AM";}
else if(nhour == 12) {ap = " PM";}
else if(nhour >= 13) {ap = " PM";nhour -= 12;}if(nmin <= 9) {nmin = "0" +nmin;}
if(nsec <= 9) {nsec = "0" +nsec;}
document.getElementById('clockbox').innerHTML=" "+tday[nday]+" "+ndate+" "+tmonth[nmonth]+" "+nyear+" "+nhour+":"+nmin+":"+nsec+ap+"";
setTimeout("GetClock()", 1000);}window.onload=GetClock;</script><div id="clockbox">
</div>
</div>
5. Dan Klik save/simpan
6. Hasilnya seperti di bawah ini ;
Demikianlah Artikel kali ini,
Semoga Bermanfaat..
thank you gan.
ReplyDelete