Menampilkan List Posting

Script HTML untuk menampilkan list posting suatu blog.
Taruh di widget HTML.


<!-- Alphabetical/chronological Post Title Listing with comment count Start -->
<script type="text/javascript">
function getYpipeTL(feed) {
 document.write('<ul style="font-weight:bold">');
 var i;
 for (i = 0; i < feed.count ; i++)
 {
var href = "'" + feed.value.items[i].link + "'";
var pTitle = feed.value.items[i].title;
<!--var pComment = " \(" + feed.value.items[i].commentcount + " comments\)"; -->
var pList = "<li>" + "<a href="+ href + '" target="_self">' + pTitle;
 document.write(pList);
 document.write('</a></li>');
 }
 document.write('</ul>');
 }
 </script>
 <script src="http://pipes.yahoo.com/pipes/pipe.run?
 YourBlogUrl=http://www.gabiken.com
 &Order=alphabet
 &_id=401e43055731c1a29f1e1d3eb5e8e13f
 &_callback=getYpipeTL
 &_render=json" 
type="text/javascript"></script>
<!-- Alphabetical Post Title Listing End -->

1 komentar:

  1. Nice banget nih gan tutorialnya.. ini yang ane cari.. tapi kalau ngurutinnya tidak berdasarkan abjad? melainkan berdasarkan update terbaru gimana gan? terus cara membatasi post yang ingin di tampilkan gimana caranya?

    BalasHapus