www.nurfuzie.com eintannurfuzie@gmail.com

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 comment:

Disclaimer
All content provided on this "Blog Nurfuzie.com" blog is for informational purposes only. The owner of this blog makes no representations as to the accuracy or completeness of any information on this site or found by following any link on this site.

The owner of Blog Nurfuzie.com will not be liable for any errors or omissions in this information nor for the availability of this information. The owner will not be liable for any losses, injuries, or damages from the display or use of this information.
This terms and conditions is subject to change at anytime with or without notice.

Followers

About

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

Get widget

Blog Archive

Labels

Ads