Tutorial - Top Commentator Versi 2


Tutorial like this ::


zaty nak ajar korang pasang top commentator
versi yg mcm ni pulak... hihii. jgn lupa komen k yg dh try =D


1. Dashboard > Design > Add A Gadget > HTML/JavaScript

2. Copy CODE kat bawah ni dan paste kan di
bahagian tadi ok :
<div class='widget-content'><!-- Top Commentators Cloud Start(c) 2010 Blogger Sentral. Original code by http://www.bloggersentral.com/. Please do not remove this credit and the &#8220;Get this commentators widget&#8221; link at the bottom of the code.--><div style="text-align:justify;line-height:1.2;"><script type="text/javascript">function cCloud(feed) {max = 0;min = 10000;//finding highest and lowest countfor (i=0;i<feed.count;i++){ccCount = feed.value.items[i].commentcount * 1;if (ccCount > max){ max = ccCount;}if (ccCount < min){ min = ccCount;ccCountD = "";display = "";for (j=0;j<feed.count;j++){ccdiff = feed.value.items[j].commentcount - min;ccFontsize = 80 + (ccdiff * 100) / (max - min) + "%";ccUrl = "'" + feed.value.items[j].authorurl + "'";ccCountD = "(" + feed.value.items[j].commentcount + ")";//comment countccName = feed.value.items[j].title + ccCountD;ccLName = "<a style='font-size:" + ccFontsize + "' href=" + ccUrl + " target='_blank'>" + ccName + "</a>";//clickable commentator namedisplay = display + ccLName + " ";}document.write(display);}</script> <script src="http://pipes.yahoo.com/pipes/pipe.run? YourBlogUrl=LINK BLOG KORANG &Exclusions=USERNAME BLOG &ShowHowMany=10 &Order=frequency &_callback=cCloud &_id=cfa196644e1d6159c9183548c4b5e2f5 &_render=json" type="text/javascript"></script></div>
<!-- Top Commentators Cloud End --></div>

3. tekan je SAVE :)

PERLU DIUBAH ::

MERAH : letak link blog korang.
BIRU : username blog korang. *yg dekat dashboard tu ^^



Thank You sebab baca entry ni . Jangan lupa like dan komen .

4 comments: