Label Cloud

Search This Blog

04 May 2010

online counter Displaykan Seluruh Posting Di Sidebar

Assamualaikum , Msue nak kongsi lagi ngan korang sume bagaimana nak displaykan sume post / artikel di sidebar





1. Login ke Blogspot .

2. Klik Layout - Add a Gadget Javascript / HTML

3. Copy kod di bawah .


<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="_blank">' + pTitle;
document.write(pList);
document.write(pComment);
document.write('</a></li>');
}
document.write('</ul>');
}
</script>
<script src="http://pipes.yahoo.com/pipes/pipe.run?
YourBlogUrl=http://www.msueroomz.blogspot.com
&Order=chrono
&_id=401e43055731c1a29f1e1d3eb5e8e13f
&_callback=getYpipeTL
&_render=json"
type="text/javascript"></script>



Note: Pada highlight , tukarkan dengan url blog korang .

4. Pastekan kedalamnya


5. Preview dan Save Template jika tiada error .


UNTUK TIDAK TERLALU PANJANG DI SIDEBAR KORANG LEH BUAT SCROLL DI SINI-->SCROLL
Tinggalkan Komen Anda Disini