Tutorial to create Popular Post:
- Login to Blogger Dashboard
- Select "Layout"
- Click on "Add Gadget".
- Select "HTML/Javascript" type
- Copy the folowing script:
<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=1cf38ae68efbe859c4ba1ee239cec099& url=http%3A%2F%2Fsecretbloggertips.blogspot.com&num=10" type="text/javascript"></script>
<span style="gt;Widget by <a href="http://www.secretbloggertips.blogspot.com">Secret Blogger Tips </a></span>
- Save
- Finish
Description:
Replace secretbloggertips.blogspot.com with your blog
num=10 mean 10 popular article
0 comments:
Post a Comment