Tutorial time !!!
Widget terbaru ! Pernah dengar widget top commentators cloud Awan Dania ? Biasanya top commentators disenaraikan dalam bentuk list. Tapi kali ni kita buat top commentators dalam bentuk awan ok = )
Contoh widget Top Commentators Cloud
Contoh widget Top Commentators List
Incase kalau korang tak berminat dengan widget berbentuk list, jom kita buat dalam bentuk awan pulak. Jom teruskan tutorial kita !
Cara Buat Top Commentators Cloud :
- Go to >> Page Element
- Add a gadget
- Copy kod pertama :
- <!-- Top Commentators Cloud Start
(c) 2010 Blogger Sentral. Original code by http://www.bloggersentral.com/. Please do not remove this credit and the “Make your own” 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 count
for (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 count
ccName = feed.value.items[j].title + ccCountD;
ccLName = "<a style='font-size:" + ccFontsize + "' href=" + ccUrl + " target='_blank'>" + ccName + "</a>";//clickable commentator name
display = display + ccLName + " ";
}
document.write(display);
}
</script>
<script src="http://pipes.yahoo.com/pipes/pipe.run?
YourBlogUrl=http://www.bloggersentral.com
&Exclusions=Anonymous,Greenlava
&ShowHowMany=20
&Order=alphabet
&_callback=cCloud
&_id=cfa196644e1d6159c9183548c4b5e2f5
&_render=json"
type="text/javascript"></script>
</div>
<span style="font-size: 80%; float:right;;margin-top:10px;">Get this <a href="http://www.bloggersentral.com/2010/02/top-commentators-cloud-widget.html" target="_blank">widget</a></span>
<!-- Top Commentators Cloud End -->
Selepas tu...langkah langkah Editting !
- Edit bahagian YourBlogUrl, Exclusions, ShowHowMany, dan Order
- YourBlogUrl : Nama url blog korang
- Exclusions : Nama commentators yang korang tak nak appear dalam widget
- ShowHowMany : Bilangan commentators
- Order : Tukar samaada Alphabet atau Frequency mengikut kesukaan korang
- Save
Ok ! Selamat Maju Jaya !
wah! kan main tuto ni nurul.nk jugak.dah pernah buat,tapi napa la tak jadik.adoyai!
ReplyDeletetq...jadi sudah
ReplyDelete@kay
ReplyDeleteKAY, BRAVO YOUU !! =)
@Zaer!!
ReplyDeleteHEHEH FOKUS BER TUTOR LAA SKANG = ) HAHAHA KESIAN LAA KO NI..G LA TUKAR TEMPLATE LEH TAK ! ADOII SEMUA TAKLEH AHAHA
Leh lak Awan Dania. Hahhaa
ReplyDeletehehehe = )
ReplyDeleteWhat a great resource!
ReplyDeleteyeah terima kasih top commentators hazwan.com
ReplyDeleteaku dah letak widget ni hahaha
tq wannn !
ReplyDeletenice post. thanks.
ReplyDeletethanks 4 sharing:)
ReplyDeletetq 4 da info =)
ReplyDeletenice!!
THANKS...TP MCM MANA NAK ASINGKAN NAMA KITA SENDIRI EYH??BG XDA DLM TU?
ReplyDeleteada ngak kode java yang langsung dipasang di blog nya
ReplyDelete