How to define a Statistics widget for blogger
Monday, July 13, 2009
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.
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.
This Articles was posted on 5:50 AMMonday, July 13, 2009
|
Labels:
Algorithms,
Blogger,
JavaScript
|
Subscribe to:
Post Comments (Atom)
0 comments:
Post a Comment