how to place Popular post widget in your blog
just follow my steps
- login into blogger
- select your blog
- click on layout
- click on add widget
- add HTML/JAVAscript wideget
- paste the code the below here
- click save and enjoy
<script type="text/javascript">
function pipeCallback(obj) {
document.write('<ul 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('</ul>');
}
</script>
<script src="http://pipes.yahoo.com/pipes/pipe.run?_render=json&_callback=pipeCallback&_id=28a6afad7c6ba1288c1b738277e42385&url=http%3A%2F%2FYOUR_BLOG_ADDRESS_HERE_WITHOUT_http://&num=10" type="text/javascript"></script>
<a href="http://ebolabird.blogspot.com" target="_blank"><span style="font-size: xx-small;">Popular Posts Widget</span></a>
change the red part to you blog address with out http:
for ex: ebolabird.blogspot.com
No comments:
Post a Comment