Saturday, September 29, 2012

Cara Membuat Widget Jam

Caranya 
  • login blog
  • buka menu rancangan
  • tambah gadget
  • lalu masukkan script dibawah ini dan simpan deh
<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);
document.write("Pukul : " + ((now.getHours() < 10) ? "0" : "") + now.getHours() + ":" + ((now.getMinutes() < 10) ? "0" : "") + now.getMinutes() + (" WIB "))
</script>

Guuuuuaaaammmmpaaaannngg kan sob??? hahahahaha

ok Good Luck ^_^

0 komentar:

Post a Comment