|
How to add this widget ? Follow this easy step :
1. Just add a page element then select HTML / javacsript
2. Fill it with this code :
Total Comments<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://yourblog.blogspot.com/feeds/comments/default?alt=json-in-script&callback=numberOfComments"></script>
Total Post<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://yourblog.blogspot.com/feeds/posts/default?alt=json-in-script&callback=showpostcount"></script>
Changes the spotted http://yourblog.blogspot.com text with your blog URL .
Okay, that's it and save your work ! it's simple and cool widget. Happy Blogging with Bloggercustom !
This is a very cool widget. I had been hunting for such a widget for very long and finally I have it. Thanks buddy. And I'll be happy to link up.
You're soooo cool! Thanks. I put it in my blogspot and it's working fine.
This post is very simple but it looks really nice when this one are display on to the blog. I hope blogger will adopt this one.