<div class='widget-content'>
<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 + '" target="_blank">' + entryTitle + "</a> </li>";
document.write(item);
}
document.write('</ul>');
}
</script>
<script src="http://www.thaudem.com/feeds/posts/summary/-/SAO?max-results=6&alt=json-in-script&callback=recentpostslist"></script>
<a href="http://www.thaudem.com/search/label/SAO" style="float:right;font:normal 10px Arial;padding:5px 0;">More Post »</a>
</div>
<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 + '" target="_blank">' + entryTitle + "</a> </li>";
document.write(item);
}
document.write('</ul>');
}
</script>
<script src="http://www.thaudem.com/feeds/posts/summary/-/SAO?max-results=6&alt=json-in-script&callback=recentpostslist"></script>
<a href="http://www.thaudem.com/search/label/SAO" style="float:right;font:normal 10px Arial;padding:5px 0;">More Post »</a>
</div>
0 nhận xét : Code chỉ lấy tiêu đề bài viết blogspot
Đăng nhận xét