If you want to impress your readers that you've posted numerous articles then this widget is for you.
Example:
Total Posts: 2654
Total Comments: 3235
Follow the steps and you'll be amazed to what this widget can do. :D
- Click Layout > Page Element > Add a Gadget
- Find the HTML/Javascript and click add.
- Copy the code below and paste it there.
<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>
<font color="black"><script src="yourblogurl/feeds/posts/default?alt=json-in-script&callback=numberOfPosts"></script>
<script src="yourblogurl/feeds/comments/default?alt=json-in-script&callback=numberOfComments"></script></font> - Replace yourblogurl with your link
- Save
You can tweak it if you like. :p
2 comments:
what a cheat. haha. cool.
keep it up with the posts. :)
thanks.. ^_^
Post a Comment