This post i will show you some tips,and it might improve you blog and attract you visitor..
that useful check it out as below;
It’ll show on your blog like this;
Total Posts: 100
Total Comments: 400
Follow The Step In Below :
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>
<font color="black"><script src="http://YOURDOMAIN.blogspot.com/feeds/posts/default?alt=json-in-script&callback=numberOfPosts"></script>
<script src="http://YOURDOMAIN.blogspot.com/feeds/comments/default?alt=json-in-script&callback=numberOfComments"></script></font>
4. Change (YOURDOMAIN) with your domain name,and Save.
Total Posts: 100
Total Comments: 400
Follow The Step In Below :
- Login into Blogger >> go to Layout >> page element and Add Gadget.
- Choose the HTML/Script
- Copy and paste code in below :
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>
<font color="black"><script src="http://YOURDOMAIN.blogspot.com/feeds/posts/default?alt=json-in-script&callback=numberOfPosts"></script>
<script src="http://YOURDOMAIN.blogspot.com/feeds/comments/default?alt=json-in-script&callback=numberOfComments"></script></font>
4. Change (YOURDOMAIN) with your domain name,and Save.
0 comments:
Post a Comment