Membuat Widget Total Post dan Total Komentar

Wednesday, July 6, 2011

  • Login ke Blogger.com
  • Pilih Rancangan >> Tata Letak >> Add Widget >> Html/Javascript
  • copy paste Script berikut : 
<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>
<small><a href="http://sefrian92.blogspot.com/2011/07/membuat-widget-total-post-dan-total.html" target="_blank">get this</a></small></center>

  • Lalu Save

No comments:

Post a Comment


 
© Copyright 2011-2012 Simoncelli MotoGP All Rights Reserved.
Template Design by Simoncelli MotoGP | Published by Bloggers Templates | Powered by Blogger.com.