Code Recent Posts Thumbnails Blogger Widget 1

<!-- Recent Posts by Label Start -->
<script type="text/javascript">
function recentpostslist(json) {
document.write('<ul>');
for (var i = 0; i < json.feed.entry.length; i++)
{
for (var j = 0; j < json.feed.entry[i].link.length; j++) {

if (json.feed.entry[i].link[j].rel == 'alternate') {

break;

}

}

var entryUrl = "'" + json.feed.entry[i].link[j].href + "'";//bs
var entryTitle = json.feed.entry[i].title.$t;
var item = "<li>" + "<a href="+ entryUrl + '">' + entryTitle + "</a> </li>";

document.write(item);
}

document.write('</ul>');
}
</script>
<script src="http://dichvumoigioitenmien.com/feeds/posts/summary/-/News?max-results=5&alt=json-in-script&callback=recentpostslist"></script>
<!-- Recent Posts by Label End -->

Post a Comment

Previous Post Next Post

Labels Max-Results No.

Boxed(True/False)