-->

Scrypt To Displays Total Post and Total Comment on Blogger

Scrypt below serves to display the total posts, total comments, and online visitors on the blog. For example see picture below :




How to place scrypt on your blog, follow this step.
1. Login To Dashboard
2. Click design tab
3. Click add a gadget
4. Select HTML/JavaScript
5. Copy and paste code below
<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=YOURBLOG" 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>
6. Save your work and see result

Note : Chage YOURBLOG with your url
example:
src="http://fastonlineusers.com/on3.php?d=www.satriacell.com" type="text/javascript"></script>

Posting Komentar

Label

Subscribe Our Newsletter