Step 1: Adding Jquery JavaScript Plugin
- a. Go to Blogger Dashboard > Design tab > Edit Html
- Search for </head> tag
- Add below line of code Before </head> tag
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.6.1/jquery.min.js" type="text/javascript"></script>
- Replace Danishmir.blogspot with your Facebook Username
- again copy the code.
- Go to Blogger Dashboard > Design tab > Page Elements
- Add a Gadget > HTML/Javascript
<script type="text/javascript">
//<!--
$undefineddocument).readyundefinedfunctionundefined) {$undefined".w2bslikebox").hoverundefinedfunctionundefined) {$undefinedthis).stopundefined).animateundefined{right: "0"}, "medium");}, functionundefined) {$undefinedthis).stopundefined).animateundefined{right: "-250"}, "medium");}, 500);});
//-->
</script>
<style type="text/css">
.w2bslikebox{background: urlundefined"https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj4XRfirB5CJGzIwSfL99iiTH_lE9L6AiqSt7BJVn20OjUU3vOWHhPOPHOEhZqj6AZUGslCqwL1Y50jJ9C8ig0GHgp0qJROsuYiKInMlHAqwXMPh015VhMF3ojC-_oDQuAEv7QS-N5WrzB0/s150/w2b_facebookbadge.png") 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=http%3A%2F%2Ffacebook.com%2FDanishmir.blogspot&width=245&colorscheme=light&show_faces=true&connections=9&stream=false&header=false&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://danish-mir.blogspot.com/">Danishmir</a> / <a href=" http://danish-mir.blogspot.com/2012/11/add-floating-facebook-like-box-for-blog.htm "> Get This!</a></span></div></div>
No comments:
Post a Comment