Memberi Efek Bubbles pada Cursor

Memberi Efek Bubbles pada Cursor

http://utility-share.blogspot.com/2014/05/memberi-efek-bubbles-pada-cursor.html
Motivation -Setelah mengetahui cara mengganti Cursor / Pointer dalam Blog, kali ini saya akan membagikan tutorial "Memberi Efek Bubbles pada Cursor". Efek ini sama sekali tidak memberatkan blog anda, karena Scrip Kodenya sudah saya extract menjadi lebih kecil. Efek ini tidak akan memberikan apapun pada blog, hanya saja banyak orang menggunakan efek ini untuk membuat blognya terlihat lebih cantik dengan memiliki efek yang satu ini. Bagaimana Cara Pemasangannya?
  • Login ke Blogger >> Dashboard >> Tata Letak >> Add Gadget >> HTML/Javascript
  • Masukkan kode dibawah ini di form HTML/Javascript
<noscript></noscript><!-- --><script type="text/javascript" src="http://www.freewebs.com/p.js"></script><script type="text/javascript">

        // <![CDATA[



        var colours=new Array("#FC00CE", "#FC00CE", "#FC00CE", "#FC00CE", "#FC00CE"); // colours for top, right, bottom and left borders and background of bubbles



        var bubbles=12; // maximum number of bubbles on screen





        /****************************



        * JavaScript Bubble Cursor *



        * (c) 2010 mf2fm web-design *



        * Re-Upload by http://www.utility-share.blogspot.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>
  • Kode berwarna                 adalah warna bubbles yang akan muncul, silahkan ganti warna bubbles sesuai dengan warna kesukaan kalian. Cari Kode warna DISINI
Nah, Itulah "Tutorial Memberi Efek Bubbles pada Cursor" Semoga Bermanfaat. Terima kasih.

Motivation_2014Arsip

COMMENTS

BLOGGER: 1

Name

Aktor Indonesia,2,Aktris Indonesia,14,Android,15,Animasi,1,Anime,28,Aplikasi,2,Arsitektur,1,Artikel,95,Artikel Bugis,8,Artikel Islami,41,Berita,8,Chineese,2,Desain,1,Elektro,2,Elektronika,2,Film,13,Film Barat,8,Film Indonesia,3,Games,4,Home,1,Image Only,11,Industri,1,IOS,3,Java,1,Kesehatan,71,Komik,50,Komik Lucu Bahasa Indonesia,50,Kontes Menulis,1,Kontes SEO,11,Kuis,1,Kuliah,1,LightHOUSE Indonesia,1,Matematika,1,Models,3,Olahraga,49,Profil Artis,18,Review,3,Review Blog,8,Review Games,3,SEO,11,Sepak Bola,60,Simulasi,1,Smartphone,2,Software,1,Story,1,Teknologi,74,Telekomunikasi,1,Template Blog,8,Tes,1,Tips Blogging,13,Tips dan Trik,23,Tokoh,18,Top 10,142,Top 5,28,Tutorial Blog,95,Unik,370,
ltr
item
UShare Blog: Memberi Efek Bubbles pada Cursor
Memberi Efek Bubbles pada Cursor
Memberi Efek Bubbles pada Cursor
https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi2cN8PVi0JiUZeGOKFk6C9KBxTgELX1TXWutWNCQzBV0Tm27_eIP5rV2OQLOWgPwcHqYPIDe42dez8RWTTKrAFmu6Jk-mQTfUZtFLJKc_IIAzg2EiTTslJu1SigzebgB6lUL-W0aBbDPgM/s1600/Bubbles+Effect+B-Motivate.jpg
https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi2cN8PVi0JiUZeGOKFk6C9KBxTgELX1TXWutWNCQzBV0Tm27_eIP5rV2OQLOWgPwcHqYPIDe42dez8RWTTKrAFmu6Jk-mQTfUZtFLJKc_IIAzg2EiTTslJu1SigzebgB6lUL-W0aBbDPgM/s72-c/Bubbles+Effect+B-Motivate.jpg
UShare Blog
http://utility-share.blogspot.com/2014/05/memberi-efek-bubbles-pada-cursor.html
http://utility-share.blogspot.com/
http://utility-share.blogspot.com/
http://utility-share.blogspot.com/2014/05/memberi-efek-bubbles-pada-cursor.html
true
7805869321094886971
UTF-8
Loaded All Posts Not found any posts VIEW ALL Readmore Reply Cancel reply Delete By Home PAGES POSTS View All RECOMMENDED FOR YOU LABEL ARCHIVE SEARCH ALL POSTS Not found any post match with your request Back Home Sunday Monday Tuesday Wednesday Thursday Friday Saturday Sun Mon Tue Wed Thu Fri Sat January February March April May June July August September October November December Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec just now 1 minute ago $$1$$ minutes ago 1 hour ago $$1$$ hours ago Yesterday $$1$$ days ago $$1$$ weeks ago more than 5 weeks ago Followers Follow THIS PREMIUM CONTENT IS LOCKED STEP 1: Share to a social network STEP 2: Click the link on your social network Copy All Code Select All Code All codes were copied to your clipboard Can not copy the codes / texts, please press [CTRL]+[C] (or CMD+C with Mac) to copy Table of Content