Cara membuat floating like fan facebook pada blog

Apabila sobat penasaran seperti apa like fan page facebook floating,
Contoh gambar lihat atas.
Dan untuk mengerti detailnya, ikuti cara membuatnya:

1. Login blog
2. Rancangan
3. Edit html  
4. Letakkan kode berikut di atas </head>

<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.6.1/jquery.min.js" type="text/javascript">
</script> 
5. Simpan template

kemudian  pada rancangan "add gadget html/javascript"
Copast kode berikut dan simpan

<script type="text/javascript">
//<!--
$(document).ready(function() {$(".floatinglikebox").hover(function() {$(this).stop().animate({right: "0"}, "medium");}, function() {$(this).stop().animate({right: "-250"}, "medium");}, 500);});
//-->
</script>
<style type="text/css">
.floatinglikebox{background: url("https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhUJgs5QPBDr6h4zmkAMhhxGatQw2XEVNKvMp1qaTgkrbRpGF0_3rMFW_6BIq9M52PoqDrghV9Y9wB0h-TLpwS63IcOuWCWYooBAk7lyDnbMW9wTwNdnovu6vPOIX1Ee58c2jBH-i_8dLM/s1600/floatingfb.png") no-repeat scroll left center transparent !important;display: block;float: right;height: 270px;padding: 0 5px 0 40px;width: 245px;z-index: 99999;position:fixed;right:-250px;top:20%;}
.floatinglikebox div{border:none;position:relative;display:block;}
.floatinglikebox span{bottom: 10px;font: 10px tahoma,verdana,arial,sans-serif;position: absolute;right: 6px;text-align: right;z-index: 99999;}
.floatinglikebox span a{color: #808080;text-decoration:none;}
.floatinglikebox span a:hover{text-decoration:underline;}
</style><div class="floatinglikebox" style=""><div><iframe src="//www.facebook.com/plugins/likebox.php?href=http%3A%2F%2Fwww.facebook.com%2Fpages%2FTutorial-Blog-Zona-Mig33-internet%2F327653677253564&amp;width=251&amp;height=270&amp;colorscheme=light&amp;show_faces=true&amp;border_color=%23cccccc&amp;stream=false&amp;header=false&amp;appId=159468740772399" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:251px; height:270px; background:#fff;" allowtransparency="true"></iframe><span><a href="http://www.mig33eagle.com/2012/02/cara-membuat-floating-like-fan-facebook.html" target="_blank">+Get This!</a></span></div></div>
Ganti kode merah diatas dengan url like fan pade sobat.
 6. Selesai

Silahkan mencoba.
Semoga tutorial tentang membuat floating like fan page facebooknya bermanfaat.
 
Top