Saturday, May 7, 2011

POST FEEDS WIDGET

<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="red"><script src="http://TELUGUBLOGTRICKS.BLOGSPOT.COM/feeds/posts/default?alt=json-in-script&callback=numberOfPosts"></script>
<script src="http://TELUGUBLOGTRICKS.BLOGSPOT.COM/feeds/comments/default?alt=json-in-script&callback=numberOfComments"></script></font>

No comments:

Post a Comment