Contoh cursor bubble yang menarik ini boleh di lihat di test blog ini.
Ikuti tutorial mudah di bawah untuk letakkan bubble cursor di blog anda.
1. Dari dashboard > design > add a gadget > HTML/javascript
2. Copy code bubble cursor di bawah, kemudian paste di ruangan HTML/javascript.
(code ini bubble warna biru. Untuk tukar warna bubble, sila ikuti tutorial sehingga habis)
<script type="text/javascript" src="https://sites.google.com/site/unwanted86/javascript/bubblecursor.js"></script><script type="text/javascript">
// <![CDATA[
var colours=new Array("#0066FF", "#0066FF", "#0066FF", "#0066FF", "#0066FF"); // colours for top, right, bottom and left borders and background of bubbles
var bubbles=100; // maximum number of bubbles on screen
/****************************
* JavaScript Bubble Cursor *
* (c) 2010 mf2fm web-design *
* http://www.mf2fm.com/rv *
* DON'T EDIT BELOW THIS BOX *
****************************/
var x=ox=400;
var y=oy=300;
var swide=800;
var shigh=600;
var sleft=sdown=0;
var bubb=new Array();
var bubbx=new Array();
var bubby=new Array();
var bubbs=new Array();
window.onload=function() { if (document.getElementById) {
var rats, div;
for (var i=0; i<bubbles; i++) {
rats=createDiv("3px", "3px");
rats.style.visibility="hidden";
div=createDiv("auto", "auto");
rats.appendChild(div);
div=div.style;
div.top="1px";
div.left="0px";
div.bottom="1px";
div.right="0px";
div.borderLeft="1px solid "+colours[3];
div.borderRight="1px solid "+colours[1];
div=createDiv("auto", "auto");
rats.appendChild(div);
div=div.style;
div.top="0px";
div.left="1px";
div.right="1px";
div.bottom="0px"
div.borderTop="1px solid "+colours[0];
div.borderBottom="1px solid "+colours[2];
div=createDiv("auto", "auto");
rats.appendChild(div);
div=div.style;
div.left="1px";
div.right="1px";
div.bottom="1px";
div.top="1px";
div.backgroundColor=colours[4];
div.opacity=0.5;
if (document.all) div.filter="alpha(opacity=50)";
document.body.appendChild(rats);
bubb[i]=rats.style;
}
set_scroll();
set_width();
bubble();
}}
function bubble() {
var c;
if (x!=ox || y!=oy) {
ox=x;
oy=y;
for (c=0; c<bubbles; c++) if (!bubby[c]) {
bubb[c].left=(bubbx[c]=x)+"px";
bubb[c].top=(bubby[c]=y)+"px";
bubb[c].width="3px";
bubb[c].height="3px"
bubb[c].visibility="visible";
bubbs[c]=3;
break;
}
}
for (c=0; c<bubbles; c++) if (bubby[c]) update_bubb(c);
setTimeout("bubble()", 40);
}
function update_bubb(i) {
if (bubby[i]) {
bubby[i]-=bubbs[i]/2+i%2;
bubbx[i]+=(i%5-2)/5;
if (bubby[i]>sdown && bubbx[i]>0) {
if (Math.random()<bubbs[i]/shigh*2 && bubbs[i]++<8) {
bubb[i].width=bubbs[i]+"px";
bubb[i].height=bubbs[i]+"px";
}
bubb[i].top=bubby[i]+"px";
bubb[i].left=bubbx[i]+"px";
}
else {
bubb[i].visibility="hidden";
bubby[i]=0;
return;
}
}
}
document.onmousemove=mouse;
function mouse(e) {
set_scroll();
y=(e)?e.pageY:event.y+sleft;
x=(e)?e.pageX:event.x+sdown; }
window.onresize=set_width;
function set_width() {
if (document.documentElement && document.documentElement.clientWidth) {
swide=document.documentElement.clientWidth;
shigh=document.documentElement.clientHeight;
}
else if (typeof(self.innerHeight)=="number") {
swide=self.innerWidth;
shigh=self.innerHeight;
}
else if (document.body.clientWidth) {
swide=document.body.clientWidth;
shigh=document.body.clientHeight;
}
else {
swide=800;
shigh=600;
}
}
window.onscroll=set_scroll;
function set_scroll() {
if (typeof(self.pageYOffset)=="number") {
sdown=self.pageYOffset;
sleft=self.pageXOffset;
}
else if (document.body.scrollTop || document.body.scrollLeft) {
sdown=document.body.scrollTop;
sleft=document.body.scrollLeft;
}
else if (document.documentElement && (document.documentElement.scrollTop || document.documentElement.scrollLeft)) {
sleft=document.documentElement.scrollLeft;
sdown=document.documentElement.scrollTop;
}
else {
sdown=0;
sleft=0;
}
}
function createDiv(height, width) {
var div=document.createElement("div");
div.style.position="absolute";
div.style.height=height;
div.style.width=width;
div.style.overflow="hidden";
return (div);
}
// ]]>
</script>
3. Save dan lihat hasilnya.:)
Note:
Bagi yang hendak tukar bubble dengan warna yang anda kehendaki selain 4 warna di atas, caranya.
Cari kod di bawah dari code yang anda paste tadi, kemudian tukarkan code warna seperti yang dihighlight
Hendak cari kod warna.?
Rujuk code warna di bawah.
Selamat Mencuba.:)
wahhh boleh cuba ni,. tq ehh ,.. sambil tinggal jejak
ReplyDeleteterima kasih utk tutorial ni. memang dah lama mencari :)
ReplyDeletetq..cangat suke
ReplyDeletesy da buat
ReplyDeletemekaseh ye! ;)
thx a lot... da lame cari.. ^^,
ReplyDeletekalau wordpress xde ke???
ReplyDeleteterima kasih!
ReplyDeletecantiknya..sy suka tengok warna warni camni..tq
ReplyDeletesya dah ade snow cursor..boleh double function x..??
ReplyDeletesnow and bubble at the same time..saya dah buat..x jadi la bubblenya..!! =(
elo dear.. thanks. tuto yg mnarik.. :)
ReplyDeletethnx! chantek sgt3!
ReplyDeletesuke sangat!
=D
nape bubble smakin ke bawah...page jadi besar k kanan...nape erk???
ReplyDeletesuke suke ...tq
ReplyDeletethanks for the tips..i really like it...it was so nice...
ReplyDeletex jadi pun?
ReplyDeleteMenarik,tapi akan ganggu loading blog?
ReplyDeleteFARISZ@AZ.Com
follow aku www.mas-google.blogspot.com/
ReplyDeletesaya ambik ye...
ReplyDeleteCmne nk bt 2..??
ReplyDeleteterimakasih infonya.. Bannernya sudah saya pasang, pasang banner saya juga ya
ReplyDeletetq...cantikk
ReplyDeletehye . leyh uat tutorial tok 'border kt entries' tak . tengs :)
ReplyDeleteAssalamualaikum, Tahniah dan terima kasih atas ilmu yang ditampilkan. InsyaAllah akan dimanfaatkan sebaik mungkin. Terima kasih.
ReplyDeletehye.. asl buat xbleh pon...
ReplyDeletedone tQ
ReplyDeleteTQ...jadi laaa
ReplyDeletethankz......i dh jadi dh....
ReplyDeletejdi..tq2
ReplyDeleteTidak faham sangat lah :(
ReplyDeletecemana ek ?xjadik punn :(
ReplyDeletendak faham banyak btul ditulis situ...sapa boleh tolong? :(
ReplyDeletesukses 3x!!!!! best3x!!
ReplyDeletethanks..
ReplyDeleteerm... masih baru di sini... seriuz xreti... dah wat dah...
ReplyDeleteDari dashboard > design > add a gadget( nie yang macam kiter nak tampal gambaQ @ banner 2 kan) > HTML/javascript
biler save lame sangat2...
thanks tunjuk ajar yg sgt bagus, I Likeee
ReplyDeleteSalam.... thankz..berjaya jga akhirnya....
ReplyDelete..ssah larr naa bwatt
ReplyDelete..lmbt plaxx
Thanx....cantik nyer
ReplyDeletethx!!
ReplyDeleteNAPE X BOLEH???
ReplyDeletegrr!!!nape bubble 2 kt head jep..tp ble scroll ke bwh,da ta te bubble..someone plishh help me!!tention dah nie..dari pg td uat bnde nie..
ReplyDeleteTerima kasih unwanted.
ReplyDeletebanyak membantu =)
thankz..
ReplyDeletethankz
ReplyDeletei like!
temkiu coz ur sharing..sweet!
ReplyDeletemcm mne nk tukar warne slain biru ?
ReplyDeletesangat-sangat cantik ! amazing ! perfect ! haha . tengz
ReplyDeletethanks for sharing.i like it.:)
ReplyDeletelawa sgt! thanks! :D
ReplyDeletecntekkk sgt... :) tq
ReplyDeletebiGG TQQ :)
ReplyDeleteatenk bawa kayu naik bis.. thank u abiss,
ReplyDeleteAWAK BENARKAN AMBIL KANDUNGAN DISINIKAN..SAYA NAK AMBIL NI LETAK KAT BLOG SAYA K..
ReplyDeleteyes! TQ so much! \^_^/
ReplyDeleteyeay!!!! HAHA
ReplyDeletex brape faham la..!!
ReplyDeletenape saye buad ta jdi eh ? hmm
ReplyDeletewah..canteknyer...tp kecik sgt..memula tue ta prsn..tp...memng bagus..cantekk..
ReplyDeletewaaaa..ty2...suka sngt.... ^^
ReplyDeletewah, jadilah. Thanks a lot :D
ReplyDeletedah jadi,cantik sangat..thanks(=
ReplyDeleteTQ, chantek sgt2....
ReplyDeletethanz tau. may ALLAH bless u :)
ReplyDeletemenjadi,,,,
ReplyDeletebudak2 baru nak belajar....thanks yaaaa
ReplyDeletetk jdi pun.....
ReplyDeletejadi..:)thanks
ReplyDeleteBest :) THANKS
ReplyDeletetime kasih...saye da gune...
ReplyDeleteterima kasih sngat2!
ReplyDeletekereeeen....matur tankyu deh.....
ReplyDeleteada sesiapa boleh ajar macam mana nak buat banner kat blog ? Pllzzzzzzz
ReplyDeleteThanks :)
ReplyDeleteThanks ^^"
ReplyDeletehaha bagus
ReplyDeleteTAK JADI PUN :(
ReplyDeleteNAK COPY YANG MANA EH ?
ReplyDeleteBANYAK SANGAT LAH .
style lah . berguna btol
ReplyDeleteThanks :)
ReplyDeleteawesome :)
ReplyDeletehey blog ni berguna lah .. thanks to owner blog ni
ReplyDeletethanks for tutorial ni :)
ReplyDeleteSukses Om
ReplyDeleteterimakasih
Awesome..very nice..
ReplyDeletesalam ... thanks 4 the tuto :)
ReplyDeletethanks .. jd la ,, haha ..
ReplyDeletethanks.... memang jadi... terima kasih atas perkongsian ilmu...
ReplyDeletetq..tq..dah jadi...best nye...tq sekali lagi
ReplyDeletetengkyu, saye pake yg bubble le...
ReplyDeleteits so nice ^_^
wahh....menjadi...than q..
ReplyDeletethx..bleh x awk buat utk tutorial buat senarai lgu??
ReplyDeleteX DER KER TUTIRIOLS UNTUK PENGUNA BLOGSKIN
ReplyDeletewa ... terima kasih ye??
ReplyDeletethanks kakak!!
ReplyDeletewat bubble cursornya,,,
dh wat dh , cntik cngt time ksih yew :D . .
ReplyDeletecantiknya!!!
ReplyDeletevisit my blog
www.mafarsyar.blogspot.com ;)
waaa , cntek nya :) hehe
ReplyDeleteWWAAAA . BEST ! :)
ReplyDeletekenapa tak boleh pun ??
ReplyDeleteTutorial bublenya bikin blok tambah asyik dipandag....thank's!!
ReplyDeletethanks panduannya...
ReplyDeletethank's ea dh mw berbagi ilmu..
ReplyDeletesalam bro
ReplyDeleteboleh tunjukkan cara nak hidden widget without tittle yang kita add dari keluar di blog
maksud momoy . bila momoy add widget bubble tu
ada garis di blog yang menunjukkan ada widget (html)
Mantap MAs Bro
ReplyDeletedah jadi dah .. thankz ..
ReplyDeleteFollow my blog bplizz ..
http://myrashasha.blogspot.com
sy x pahammmmmmmmmmmmmmmmmmmmmmmm ! uwarrrr :(
ReplyDeletewah! thanx menjadi la! :D
ReplyDeletelike2/// TQ ADMIN..
ReplyDeletethanks info nya :)
ReplyDeletewow..cantek thanks info nya :)
ReplyDeletewah best'y bubble cursor ~ thanks ^^
ReplyDeletethanks cantik =)
ReplyDeletemenjadi...skenya hihi :) ten~Q
ReplyDeletemakasi bos bagus deh
ReplyDeletetq :)
ReplyDeletemakasih ..
ReplyDeleteThank you :)
ReplyDeleteWrite more, thats all I have to say. Literally,
ReplyDeleteit seems as though you relied on the video to make your point.
You clearly know what youre talking about, why throw away
your intelligence on just posting videos to your site when you could be giving us something informative to read?
Check out my webpage: raspberry ketone Diet
Hi i am kavin, its my first time to commenting anywhere, when i read
ReplyDeletethis piece of writing i thought i could also make comment due to this sensible post.
Have a look at my blog plus de followers
Makasih, saya akan mencoba memakai ini.
ReplyDeletethx sesgt..:))
ReplyDeletememang menarik..
n btw..blog nie mmg faveret aku sbb bnyk tutorial yg super awesome utk buat blog lebih mnarik coz aku pun x reti ssgt ttg setting dlm blog..
uwaaaahhhhhh!!! menjadi la! hebatnyerrrrrrrrrr..... thank you thank you
ReplyDeleteterime kaseh, dah jadik (:
ReplyDeletecomey sangat ~
steroids is the game / body constructing is name of sport .
ReplyDeletewho wants to play .
My blog post ... six pack shortcuts free download
Was carrying out standard bodybuilding routines.
ReplyDeleteacquired muscle mass, but go no main stability, etc. Since doing athleanx, I'm not like the classic bodybuilders, just mass. I have mass and speed. really like the conditioning routines!!!
Look into my webpage muscle building diet plan on a budget
how you can update fb in china.....?i truly want to apdate
ReplyDeleteit
My weblog - dating tips from my future self wiki
I'm a survivor of childhood sexual abuse and this kind of education is precisely what I'd
ReplyDeletepersonally have essential and what my mother and father would have necessary to prevent the suffering I went?
via.
my web site ... 60 Minute stamina free Online
tak boleh pun :( help me please :(
ReplyDeleteIt is truly a nice and helpful piece of info. I am happy that you
ReplyDeletejust shared this useful info with us. Please keep us up to date
like this. Thank you for sharing.
Look into my blog; vigrx plus
Thank you for the auspicious writeup. It in fact was a
ReplyDeleteamusement account it. Look advanced to far added agreeable from you!
By the way, how could we communicate?
Also visit my homepage ... basyx chair
"packing a 5-inch 1080p screen, giving a PPI of who actually cares"
ReplyDeleteHere is my webpage premature ejaculation exercise program
Hey there! I just wanted to ask if you ever have any issues with hackers?
ReplyDeleteMy last blog (wordpress) was hacked and I ended up losing a few
months of hard work due to no back up. Do you have any methods
to protect against hackers?
Feel free to surf to my web site attraction shadow theater group youtube
thanks :)
ReplyDeleteoke terima kasih banyak gan
ReplyDeletekalau nak warna-warni boleh ke?
ReplyDeleteLawa la..saya pn da cuba dan da dpt pun...tq atas tutorial ni...
ReplyDeletemenjadi laa .. :) terima kasih . alang alang nak tanya , kalo nak letak deekat blog title tu , nak letak gambar kite skali , cane erk ??
ReplyDeleteSis.. boleh saya apa fungsi blog button?
ReplyDelete