Saturday, January 21, 2012

Letak Top commentar


hye semua,hari ni mai tergerak hati nak buat tutorial ni.mai harap semua ni berguna untuk awak semua♥
mai nak buat tutorial top commentar.bagi sesapa yang tak tahu,top commentar ni pengomen yang terbanyak la. 

1. Dashboard > Design > Page Element > Add Gadget
2.Pate kod ni:
<center><script type="text/javascript">
function getYpipe(feed) {
document.write;
var i;
for (i = 0; i < feed.count ; i++)
{
var href = "'" + feed.value.items[i].link + "'";
if(feed.value.items[i].link == "")
var item ="<li>" + feed.value.items[i].title + "</li>";
else
var item = "<li>" + "<a href="+ href + '" target="_blank">' + feed.value.items[i].title + "</a> </li>";
document.write(item);
}
document.write('</ul>');
}
</script>
<script src="http://pipes.yahoo.com/pipes/pipe.run?
YourBlogUrl=(url blog korang)&ExcludedNick1=(nama profile korang)&ExcludedNick2=anonymous
&ShowHowMany=(jumlah top commentar yang korang nak letak)&_callback=getYpipe
&_id=23022d7836bf2dd3c10a329feb9be26a
&_render=json"
type="text/javascript"></script></center>

Patu save...♥Selamat mencuba 

No comments: