Cara Pasang Tanggal Otomatis

Kamis, 17 Februari 20110 comments

Untuk memasang tanggal otomatis pada blogger memerlukan beberapa langkah sederhana, hanya copy paste saja.


Langkah - langkah :

  1. Buka Blogger
  2. Klik Rancangan / Tata Letak
  3. Klik Tambah Gadget
  4. Klik HTML/JavaScript
  5. Copy Paste Srcript dibawah ini :


<script type="text/javascript">
now = new Date();
if (now.getTimezoneOffset() == 0) (a=now.getTime() + (7*60*60*1000))
else (a=now.getTime());
now.setTime(a);
var tahun=now.getFullYear()
var hari=now.getDay()
var bulan=now.getMonth()
var tanggal=now.getDate()
var hariarray=new Array("Minggu","Senin","Selasa","Rabu","Kamis","Jum'at","Sabtu")
var bulanarray=new Array("Januari","Pebruari","Maret","April","Mei","Juni","Juli","Agustus","September","Oktober","Nopember","Desember")
document.write(hariarray[hari]+" "+tanggal+" "+bulanarray[bulan]+" "+tahun)
</script>


6. Atur Gadget ditempatkan dimana.
7. Selesai, Jangan lupa Simpan


Share this article :

Posting Komentar

 
Support : Creating Website | Johny Template | Mas Template
Copyright © 2011. Prolingkungan - All Rights Reserved
Template Created by Creating Website Published by Mas Template
Proudly powered by Blogger