Popular posts widget for Blogger

Open your Blogger template’s Layout section and then select to add a new HTML/JavaScript ,through gadgets . Copy the Blogger popular posts widget code to the box and save the settings .Change www.yoursite.com with your blog URL and the value 10 with required number of popular posts .

<script type="text/javascript">
function pipeCallback(obj) {
document.write('<ol style="text-transform: capitalize;">');
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=1a1c6e4e6d4f148e3650fda46910e15f&url=http%3A%2F%2Fwww.yoursite.com&num=10" type="text/javascript"></script>
<span style="font-size: 80%">widget by <a href="http://blogfornoob.blogspot.com">BlogForNoob</a></span>

If you like this post, Share it:
  • Facebook
  • BlinkList
  • del.icio.us
  • Digg
  • Google Bookmarks
  • LinkedIn
  • Live
  • Ma.gnolia
  • MySpace
  • Netvibes
  • Ping.fm
  • Ratimarks
  • Reddit
  • StumbleUpon
  • Technorati
  • Tumblr
  • Yahoo! Buzz
  • Book.mark.hu
  • Linkter
  • Mixx