Kamis, 07 Juni 2012
,kali ini saya akan share cara membuat tanggal dan total user online dengan kode javascript. Langsung saja dipraktekkan ya. Ikuti langkah langkahnya.
1. Login dulu ke blog kamu
2. Pilih Tata Letak
3. Pulih Tambah Gadget lalu pilih HTML/Javascript
4. Klik simpan dan lihat hasilnya<div style='font:bold 12px arial;text-transform:none;'><center><b><script type='text/javascript'>
//<![CDATA[
/*
Widget Original By BIT-XP Don't Share But For USE
*/
var mydate=new Date()
var year=mydate.getYear()
if (year < 1000)
year+=1900
var day=mydate.getDay()
var month=mydate.getMonth()
var daym=mydate.getDate()
if (daym<10)
daym="0"+daym
var dayarray=new Array("Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday")
var montharray=new Array("January","February","March","April","May","June","July","August","September","October","November","December")
document.write("\<b>"+dayarray[day]+", "+daym+" "+montharray[month]+", "+year+"</b></font>")
//]]>
</script> Total User Online : <script src='http://fastonlineusers.com/on3.php?d=www.bit-xp.com' type='text/javascript'/></b>
<script type='text/javascript'>
try {
var pageTracker = _gat._getTracker("UA-4679235-4");
pageTracker._trackPageview();
} catch(err) {}</script>
</b></center></div>
- Ganti tulisan warna hijau dengan alamat blog kamu
- Sumber : http://www.bit-xp.com/2011/09/cara-membuat-tanggal-dan-total-user.html
Related Posts :
- Back to Home »
- TUTORIAL BLOGSPOT »
- Cara Membuat Tanggal Dan Total User Online Dengan Javascript