Add Floating Facebook Like Box for Blogger

First all you have to add the Jyquery plugin to your blog.

1. Go to your Dashboard>Design>Edit HTML
2. Add this code above the closing tag in your HTML file:


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




Ignore this step if have added Jyquery plugin to your blog.



Adding Widget Code:

1. Go to Design > Add a Gadget > HTML/JavaScript
2. Add this code to HTML/JavaScript Widget:



<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("http://3.bp.blogspot.com/-VXmAJdQRHJ8/Tra8E16fZGI/AAAAAAAAClg/o5M632x9qX8/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%2FPetardiola&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.petardiola.blogspot.com/2012/05/add-floating-facebook-like-box-for.html" target="_blank">+Get This!</a></span></div></div>


Replace http%3A%2F%2Fwww.facebook.com/petardiola, with your fan page URL,

Remember!

Before replacing URL, replace these symbols:

: with %3A
/ with %2F


for example, if your URL looks like this;


http://www.facebook.com/Petardiola
it will look like this:
http%3A%2F%2Fwww.facebook.com%2Fpetardiola

Comments

  1. Play at the best casino! - DRMCD
    Play at 세종특별자치 출장마사지 the best casino! - DRMCD. Casino | 김천 출장안마 Play at the best casino! 강릉 출장안마 - DRMCD. Casino | 전주 출장샵 Casino. 전라남도 출장마사지 Casino. Casino. Casinos. Online Slots. Online

    ReplyDelete

Post a Comment