Widgets & Total Comments Total Posts
This widget is its function as a counter how many posts on the blog, which clearly this widget already not new anymore, but it would not hurt if I published again as a convenience when you need it.



And Total Comments juag not new anymore, its function is to count how many are left Commentar Visitor in your Blog, and the script code follows the steps below:

1. Log in blogger
2. Go to the menu layout / layout
3. On the Element menu page, click on the word Add a Gadget, to add a new widget.
4. Then select the HTML / Javascript, then copy and paste the code below:


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

Do not forget to replace YOUR BLOG NAME with the name of your blog.
5. And that finish Click SAVE TEMPLATE
Good luck ......
  • Followers

    Counter

    free counters
  • Site Map