2008-04-21

JavaScript : Top Commenters

Here's some JavaScript code that uses Yahoo's JSON output. You may add to your Html/JavaScript under your "Add a Page Element" into your sidebar. The result is shown below:-




(Click on image to copy the script)
The above script has 3 parameters:-
* url = your blog's address
* num = the number of people from the list
* filter = a name you can filter from the list

To filter the author from being listed as one of the commenters, please filter it out as follows:-

num=10&filter=Author's Name"

Enjoy!


0 comments:

Post a Comment

1. Comments posted must be accompanied by names or pseudonyms.
2. Anonymous posting and those containing profanities will be rejected.
3. Comments are moderated due to spam problems. I have to approve the comment before it will show up.

:)) ;)) ;;) :D ;) :p :(( :) :( :X
=(( :-o :-/ :-* :| 8-} :)] :-t b-( :-L