Wednesday, May 21, 2008

MOST POPULAR ARTICLES

May 15, 2008

JavaScript : Most Popular Articles


This script is totally based on number of commentators put up their comments on your site. The more they continue to comment, the higher the post ranking, thus making the article on top of the list.

Here we go, just follow this few simple steps as below:-

1- Go to Dashboard> Layout> Page Elements
2- Click on Add a page element of your sidebar.
3- Chose for Edit Html/Javascript to add (copy and paste) the below script into your sidebar.

<code><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%2F<span style="color: rgb(255, 0, 0);">
onlinebiz-my.blogspot.com</span>&
num=10" type="text/javascript"></script></code>




4- Change the red colored portion to your blog name.
5- Place your own title i.e Most Popular Articles
6- Save.

http://www.onlinebiz-my.blogspot.com/

Type rest of the post here

No comments: