Add Floating Facebook Like Box for Blogger

Monday, November 7, 2011 Labels: ,
Many tutorial gives you how to add floating facebook like button. Now I came up with new tutorial for adding floating like box to blogger. This is a great way which requires almost no space and it looks more attractive than that of simply keeping the like box.


Adding Jquery Plugin
1. Sign in to Blogger
2. Go to your Dashboard>Design>Edit HTML
3. Add this code above the closing </head> 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 thies step if you 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%2FBloggerHacks&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.bloggerhack.com/2011/11/add-floating-facebook-like-box-for.html" target="_blank">+Get This!</a></span></div></div>

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

Remember!
Before replacing URL, replace these symbols:
: with %3A
/ with %2F

for example, if your URL like this:
http://www.facebook.com/pages/BloggerHack/1234567
It will look like this:
http%3A%2F%2Fwww.facebook.com%2Fpages%2FBloggerHack%2F1234567
Feel free to share with us if you have any problem.
:) :( ;) :D ;;-) :-/ :x :P :-* =(( :-O X( :7 B-) :-S #:-S 7:) :(( :)) :| /:) =)) O:-) :-B =; :-c :)] ~X( :-h :-t 8-7 I-) 8-| L-) :-a :-$ [-( :O) 8-} 2:-P (:| =P~ #-o =D7 :-SS @-) :^o :-w 7:P 2):) X_X :!! \m/ :-q :-bd ^#(^ :ar!

16 comments:

  1. This comment has been removed by the author.

    ReplyDelete
  2. It s working fine Thank u sir

    venicerajansurya.blogspot.com ..

    ReplyDelete
  3. It's wonderfull posting.thanks.Now my blog have facebook like.sorry if my english is not good.

    ReplyDelete
  4. www.adrenoace.blogspot.com

    Is it right?

    ReplyDelete
  5. Is it the same for adding floating twitter box ( for blogger ) ???
    Nice tutorial by the way! Cheers!

    ReplyDelete
  6. I'd be glad if you post a tutorial about twitter also!

    ReplyDelete
  7. this is simply awesome.. i loved it.. but i have a image slider on my blog's homepage that stops sliding when i add that jquery plugin in "Edit Html". Can you tell me a way to prevent this from happening?

    ReplyDelete
  8. thats nice but how to do on a website like php script not on blog ?
    www.hdwallbase.com
    contect me

    ReplyDelete
  9. Muchas Gracias viejo me sirvio de mucho, salu2 desde PerĂº.

    www.estared.net

    ReplyDelete
  10. I like this blogger hack as my other mind, that i using all trick for al my blogs :) thxs for share this blogger hack trick

    ReplyDelete
  11. This comment has been removed by the author.

    ReplyDelete
  12. http://pcprog.webs.com/
    learn hacking and programming
    download everything you want for free
    see hacks,codes and serials about whatever you want

    Thank you !

    ReplyDelete

 
Blogger Hack © 2012 | Blogger Tips n Tricks | Template by PBT