Free javascript Hosting


postspopular.js

Uploaded on Dec 29 2009 06:24 by fernandopasse

var postTitlear=new Array();var postUrlar=new Array();var postCommentar=new Array();var totalpost;function showrecentposts(j){var a=j.feed.entry.length;totalpost=a;for(var f=0;f<a;f++){var g;if(f="=j.feed.entry.length){break;}for(var" h="j.feed.entry[f];var" d="0;d" c="h.title.$t;var" b;var><h.link.length;d++){if(h.link[d].rel =="alternate" d="0;d" ){g="h.link[d].href;break;}}for(var"><h.link.length;d++){if(h.link[d].rel h.link[d].title.split( )[0];break;}}c="(aBold)?<b>+c+</b" = replies&&h.link[d].type="text/html){b">":c;postTitlear.push(c);postUrlar.push(g);postCommentar.push(b);}sortPosts();for(var f=0;f<maxshowresult;f++){var e="'<li"><a href="'+postUrlar[f]+'" class="recent-link">'+postTitlear[f]+" ("+postCommentar[f]+" comments)</a>";document.write(e);}}function sortPosts(){function c(d,f){var e=postTitlear[d];postTitlear[d]=postTitlear[f];postTitlear[f]=e;var e=postUrlar[d];postUrlar[d]=postUrlar[f];postUrlar[f]=e;var e=postCommentar[d];postCommentar[d]=postCommentar[f];postCommentar[f]=e;}for(var b=0;b<posttitlear.length-1;b++){for(var a="b+1;a"><posttitlear.length;a++){if(parseint(postcommentar[b])><parseint(postcommentar[a])){c(b,a);}}}}document.write( = json-in-script&callback="showrecentposts" &orderby="published&alt"><\/script" +HOME_PAGE+FEEDS/POSTS/DEFAULT?MAX-RESULTS="+numposts+" <script src=>');document.write('<div><a style="font-size: 8px; text-decoration:none; color: #616469;" href="http://www.abu-farhan.com">Widget by Abu Farhan</a></div>');

Back to list