Saturday, October 20, 2007

Total number of posts on a Blogger blog

Here is blogger hack to show the total number of posts on your blog.

It uses JavaScript and JSON (JavaScript Object Notation).

The only thing you need is to change ChangeThisToYourBlog in the code below to the name of your blog.

<script style="text/javascript"> function showpostcount(json) { document.write('Posts on this blog ' + parseInt(json.feed.openSearch$totalResults.$t,10) + '<br>'); } </script> <script src="http://ChangeThisToYourBlog.blogspot.com/feeds/posts/default?alt=json-in-script&callback=showpostcount"></script>

Some of the latest blog posts

Subscribe to RSS headline updates from:
Powered by FeedBurner