Translate

Recent Posts for label

1. Đăng nhập Blogger
2. Design\ Layout \ Add a gadget \ HTML/JavaScript Add
3. Đặt tên trong mục Title ................  
4. Trong mục content nhập code sau vào

<!-- Recent Posts by Label Start -->
<!-- code by http://liemnguyenngoc.blogspot.com -->
<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://liemnguyenngoc.blogspot.com//feeds/posts/summary/-/thu thuat blogpost?max-results=30&alt=json-in-script&callback=recentpostslist"></script>
<span style="font-size: 80%; float:right;">Get this <a href="http://liemnguyenngoc.blogspot.com">widget</a></span>
<!-- Recent Posts by Label End -->