Ticker

6/recent/ticker-posts

Sembunyi FB Fan Page di Blog dengan Smooth Jquery Hover Effect



Langkah 1 ( Tambah Jquery JavaScript Plugin )

Design > Edit html > ctrl+f
Selepas itu cari </head>
Selepas itu, copy code bawah nie dan paste di atas code kita cari tadi.


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

Selepas itu klik Save.

Langkah 2 (Masukkan kode)Dari dashboard > design > page element > add a gadget > HTML/javascript
<script type="text/javascript">
//<!--
$(document).ready(function() {$(".w2bslikebox").hover(function() {$(this).stop().animate({right: "0"}, "medium");}, function() {$(this).stop().animate({right: "-250"}, "medium");}, 500);});
//-->
</script>
<style type="text/css">
.w2bslikebox{background: url("https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh2eTTGwZY0r3gRDVPST3RflbRz-2MwlfCFdxPS6LWcSLRKAiiOGpBNuLYyGF607bEBh4-E22H_nnmcqazied6hAcCALluI8wgeiOkGnGjqfjv4NA77LgD9PGgttQC8DtstedjzraxhBGk4/s150/w2b_facebookbadge.pn") no-repeat scroll left center transparent !important;display: block;float: right;height: 270px;padding: 0 5px 0 46px;width: 245px;z-index: 99999;position:fixed;right:-250px;top:20%;}
.w2bslikebox div{border:none;position:relative;display:block;}
.w2bslikebox span{bottom: 12px;font: 8px "lucida grande",tahoma,verdana,arial,sans-serif;position: absolute;right: 6px;text-align: right;z-index: 99999;}
.w2bslikebox span a{color: #808080;text-decoration:none;}
.w2bslikebox span a:hover{text-decoration:underline;}
</style><div class="w2bslikebox" style=""><div><iframe src="http://www.facebook.com/plugins/likebox.php?href=URL PAGE ANDA&amp;width=245&amp;colorscheme=light&amp;show_faces=true&amp;connections=9&amp;stream=false&amp;header=false&amp;height=270" scrolling="no" frameborder="0" scrolling="no" style="border: medium none; overflow: hidden; height: 270px; width: 245px;background:#fff;"></iframe><span>By <a href="http://www.jeritanblog.com/">JeritanBlog</a> / <a href="http://www.jeritanblog.com/2011/12/sembunyi-fb-fan-page-di-blog-dengan.html">+Get This!</a></span></div></div>

Edit
Nota: Gantikan "URL PAGE ANDA"
Save dan lihat hasilnya.:)

Catat Ulasan

0 Ulasan