Best view in Firefox and Chrome

About the Author

SubanuHi all.. Shayanthan (alias Subanu) is an Engineering student from University of Moratuwa, Sri Lanka, in the Department of Computer Science and Engineering ...read more »

     Email me       Linkedin


Breeze on Facebook

How to define a Statistics widget for blogger

Monday, July 13, 2009
Convert Article to PDFPrint ArticleEmail Article to FrinedBookmark this Article


It is very easy to enable a Statistics widget in your blogs. Statistics widget is a widget that shows the total no of posts and comments in your blog. Here I have mention the step to enable this widget in your blogs.

To show your blog statistics in your blog sidebar,copy the following code and paste it in your blog by Adding a new gadget -> HTML/JavaScript.

<script style="text/javascript"> function numberOfPosts(json) { document.write('<center><b>Total Posts : ' +
json.feed.openSearch$totalResults.$t + '</b></center>');
} function numberOfComments(json) { document.write('<center><b>Total Comments : ' + json.feed.openSearch$totalResults.$t + '</b></center>'); } </script> <ul><li><script src="http://Breezeblog.blogspot.com/feeds/posts/default?alt=json-in-script&callback=numberOfPosts">
</script>
</li>
<li><script src="http://Breezeblog.blogspot.com/feeds/comments/default?alt=json-in-script&callback=numberOfComments">
</script>
</li></ul>

Please replace 'Breezeblog' the with your blog name (that is URL) and Save the code and see the wiget working. Thats it. Enjoy this Statistics widget. The credits of this widget goes to Assess My Blog.

Read these Articles :

0 comments:

Why Breeze

This is a new technological rhythm in the web. It blooms like a Breeze in your technological face with more than 75 technoligical atricles and guidences.

Contact Me
Contact Me Send an Email Facebook Account LinkedIn profile Twitter/Shayanth
Share And Save
Social Share with Twitter Facebook Share Add to Google Save on Delicious
Get Updates

The RSS will facilitate you to get the updates from Breeze. Click Here to redirect to the RSS link.

Designed by Posicionamiento Web | Bloggerized by GosuBlogger | Blue Business Blogger | Customized by SHAUOM