How to Add the "Top Commentators" Widget for Blogger.com
- Login to your Blogger Dashboard.
- Under "Page Elements".
- Click on "Add a Page Element".
- Look for "HTML/JavaScript" and "ADD TO BLOG".
- Copy and Paste the JavaScript below.
- Replace YOURBLOGNAME with the name of your Blog.
- Choose the number of Top Commentators to be displayed and replace the XX at "num=XX".
- "SAVE CHANGES". You are Done.
function pipeCallback(obj) {
document.write("<ol>");
var i;
for (i = 0; i < obj.count ; i++)
{
var href = "'" + obj.value.items[i].link + "'";
var item = "<li>" + "<a href=" + href + ">" + obj.value.items[i].title + "</a> </li>";
document.write(item);
}
document.write("</ol>");
}
</script>
<script src="http://pipes.yahoo.com/pipes/pipe.run?_render=json&_callback=pipeCallback&
_id=c92ac21897d8b56e61cfa85930dd89a1&
url=http%3A%2F%2FYOURBLOGNAME.blogspot.com&num=XX" type="text/javascript"></script>
Discover The Law of Attraction! Learn the Secret to attracting everything you desire in your life.








6 comments:
good trick, but I refuse to use javascript!
May I know the reason?
Good tips.. thanks for sharing !
Very nice widget. If I'd still been using blogger.com I'd definitely have used it.
a cup of cofee?...fine...
thank's a lot for your tips.
nice..
great!techyplus
Post a Comment