In this post i have given javscript code to print or display the number of posts or comments that you have in your blog. This hack is very easy to implement. See how it looks …
Javascript Code to Display Total Number of Comments : How to Install : Insallation is very simple. Just copy and paste the above code whereever you want ( in gadget or posts or under footer etc..). Dont forget to change letter in red with your blog url.
Javascript Code to Display Total Number of Posts :
<script style="text/javascript">
function showpostcount(json) {
document.write(‘Total Posts : <b>’ + parseInt(json.feed.openSearch$totalResults.$t,10) + ‘</b><br>’);
}
</script><script src="http://www.yourblog.blogspot.com/feeds/posts/default?alt=json-in-script&callback=showpostcount"></script>
<script style="text/javascript"></script><script style="text/javascript">
function numberOfComments(json) {
document.write(‘Total Comments : <b>’ + json.feed.openSearch$totalResults.$t + ‘</b><br>’);
}
</script><script src="http://www.yourblog.blogspot.com/feeds/comments/default?alt=json-in-script&callback=numberOfComments"></script>




