Header Ads

Breaking News
recent

Information of Your own blog..

Many tools and applications are available on the internet which helps you to see all information about your post like, Number of Posts, Comments and how many readers are online. But instead using this application, what if you yourself makes such application.

I was surfing on the internet and found one such script which helps us to do this. Thanks to that Geeky person:

Perform the following steps:

1. Login to your Blogger account

2. Click on the Design --> Page Elements --> HTML/Javascript

3. Copy the code given below and paste it.


<script style="text/javascript">
function totalPosts(json) {
document.write('Stories: <b>' + json.feed.openSearch$totalResults.$t + '</b><br>');
}
function totalComments(json) {
document.write('Comments: <b>' + json.feed.openSearch$totalResults.$t + '</b><br>');
}
</script>
<script src=" /feeds/posts/default?alt=json-in-script&callback=totalPosts"></script>
<script src=" /feeds/comments/default?alt=json-in-script&callback=totalComments"></script>
<p style="margin-top: 0; margin-bottom: 0">
<table border="0" bordercolor="#111111" id="AutoNumber1" cellpadding="0" cellspacing="0" style="border-collapse: collapse" width="100%">
<tr>
<td width="35%">
Online Readers:</td>
<td width="65%"><p style="margin-top: 0; margin-bottom: 0"><b><script src="http://fastonlineusers.com/on3.php?d=Your Blog URL" type="text/javascript"></script></b></p></td>
</tr>
</table></p>
<script type="text/javascript">
try {
var pageTracker = _gat._getTracker("UA-4679235-4");
pageTracker._trackPageview();
} catch(err) {}

</script>

4. Change the Your Blog URL with the URL of your blog.

5. Save the widget and place it in the template where you want.

6. Save the template and check the blog for this new cool stat showing widget.

Enjoy!!!

No comments:

Powered by Blogger.