Thursday, April 26, 2012

Membuat Floating Facebook Like Box

Menambahkan Jquery Plugin
1. Login ke Blogger
2. Klik Dasbor>Rancangan>Edit HTML
3. Cari kode
    </head>
4. Tambahkan kode ini diatas </head>
 
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.6.1/jquery.min.js" type="text/javascript">
</script>
Menambahkan Kode HTML pada Widget
1. Klik Dasbor>Rancangan>Tambah Gadget>HTML/JavaScript
2. Copy kode dibawah ini

<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/AVvXsEhbnIxNcJB7K6ab91HMvxaxAnJ1LWf436m2znSQbzkPqkDqMish9AYL-iAVDlhU2v5Jd6pIkclkfLnwyj6UDOhO0kIDJwsxRmQPDU9bzDVWWcmOeE94-7ByXtzLxSHRqvSU6IfGd88qKdo/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://www.facebook.com/pages/INFO-Onely/373584272694147&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">
 

3. Ganti  http://www.facebook.com/pages/INFO-Onely/373584272694147 dengan Facebook Fan Page Anda.
4. Save

Selamat mencoba....

Contoh ada tulisan Facebook di Dinding Kanan Blog saya....












Comments
0 Comments

0 komentar:

Post a Comment

Khiasan

Teruslah berinspirasi untuk hal-hal positif yang membawa keuntungan bagimu..
Kelak nanti pasti akan membawa kebahagian bagimu...

....."Salam Blogger Info Onely".....

JANGAN LUPA JOIN BLOG DAN LIKE FACEBOOKNYA