Thursday, February 14, 2013

How to add Floating Facebook Like Box in Blogger

To add a floating Facebook like box follow the below steps.

First we need to reference to Jquery librayr.
go to blogger Dashboard >> Template >> Edit html.
Search for </head> and just above the tag paste the below code.
<script type="text/javascript" src=""></script>
Now goto blogger Dashboard >> Layout >> add a gadget >> HTML/JavaScript
Paste the below code.
<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("") 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="//" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:240px; height:320px; background:#fff;" allowtransparency="true"></iframe><span><a href="" target="_blank">Get This!</a></span></div></div>
Replace myPage from the above code and paste your own Facebook page name.

No comments:
Write comments
Recommended Posts × +