Add Blogger statistics Widget



Add Blogger statistics Widget to your Blog It show Total Posts & Comments


Follow the Simple Steps for add Widget:

1 Go To the blogger.com >>> Design >>> Page Element >> HTML/JavaScript paste the below the code in HTML/JavaScript new window box




<script style="text/javascript">
function numberOfPosts(json) {
document.write('Posts: <b>' + json.feed.openSearch$totalResults.$t + '</b><br>');
}
function numberOfComments(json) {
document.write('Comments: <b>' + json.feed.openSearch$totalResults.$t + '</b><br>');
}
</script>
<font color="blue"><script src="http://expertiseblog.net/feeds/posts/default?alt=json-in-script&callback=numberOfPosts"></script>
<script src="http://expertiseblog.net/feeds/comments/default?alt=json-in-script&callback=numberOfComments"></script></font>




Now Save your widget .... Now your Done :) For Demo Click Here


Widget Customization!


Replace http://expertiseblog.net/ with your own blog URL. You can change the Posts: and Comments: text to whatever you like for example you can replace Comments: with Total No. of Comments:.

Subscribe to Our Feeds !



Responses

0 Respones to "Add Blogger statistics Widget"

Post a Comment

 
Return to top of page Copyright © 2010 | Platinum Theme Converted into Blogger Template by HackTutors