Wednesday, August 24, 2011

Tutorial cara pasang top commentator

 
Assalamualaikum w.b.t
Di sini disertakan cara untuk memasang wiget Top Comentator .


Sebagai contoh
*design.
*page elements.
*add a gadget.
*HTML / java script.
*copy and paste kod ni.




 
<script type="text/javascript">

function getYpipe(feed) {

document.write('<ul style="list-style-image: url(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiBpQcOIR8Z472Ws45wjNhupY4VW8HY_4of4F6MnWfe4vdYwMNInxn7KfZQFLeJlRksTzV_qzXgAb7D-84UQUyx9vlJzEtjDbM6S1FwanKzkII8ELmFaqJfbniWKXh1zfACPuLL0FJYjzY/s1600/circle-arrow-blue.png);margin-left: 20px;">');

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=http://afsyanur.blogspot.com/
&ExcludedNick1=Che Hafsa
&ExcludedNick2=anonymous
&ShowHowMany=6
&_callback=getYpipe
&_id=23022d7836bf2dd3c10a329feb9be26a
&_render=json"
type="text/javascript"></script>
<span style="font-size: 50%; float:right;">Get this <a href="http://afsyanur.blogspot.com/2011/08/tutur-cara-pasang-top-commentator.html
">widget</a></span>
tulisan hijau ni, masukkan nama blog awak..
tulisan merah, masukkan nama awak (untuk mengelakkan nama awak dikire sekali dalam top commentator tu)
tulisan biru, untuk jumlah komen yang awak nak appearkan..

pastu, save..

2 comments:

  1. terima kasih bg tutur....


    jom join GA di sinie =>
    http://siluncaimalang.blogspot.com/2011/08/first-ga-cr-perlukan-rakan-alam-maya.html

    ReplyDelete
  2. @"Aku"....Nurul Azren : thanks too =)

    ReplyDelete