www.nurfuzie.com eintannurfuzie@gmail.com

 photo kkba copy.jpg

2011-07-17

TUTORIAL : list total post dan total comment dalam blog kita

korang nak tau bper banyak entry yang korang dah post?(selain kita tgk kat dashboard)
nak tau gak bper byk dah dikomen?
nak?ha....kali ini cik en ajar yek...
jom kita start


  • Pergi ke : Dashboard= Design =Add Gadget = Html/java script
  • pastekan code ini
<center><script style="text/javascript">
function totalPosts(json) {
document.write('Total Posts: <b>' + json.feed.openSearch$totalResults.$t + '</b><br>');
}
function totalComments(json) {
document.write('Total Comments: <b>' + json.feed.openSearch$totalResults.$t + '</b><br>');
}
</script>
<script src=" /feeds/posts/default?alt=json-in-script&callback=totalPosts"></script>
<script src=" /feeds/comments/default?alt=json-in-script&callback=totalComments"></script></center>
<small></small>

  • pastu save la..n tgk hasilnya
  • selamat mencuba 
JOM JOIN NAK?
Photobucket

1 comments:

Acik said... [Reply]

tq for d tutorial! :)

Followers

About

For Advertorial, Collaborations and Review. Please Contact eintannurfuzie@gmail.com.

Get widget

Blog Archive

Labels

Jom Buat Mobile App

 photo iklan_blog3_small.png

Ads