
Adding Floating Facebook Like Box in Blogger
There are two steps:- Adding jQuery Plugin
- Adding Widget Code
Adding JQuery Plugin
- Sign in to Blogger
- Goto Template > Edit HTML
- Press "Ctrl + F" and find
</head>
tag - Before
</head>
tag add the following code;
<script src='https://ajax.googleapis.com/ajax/libs/jquery/1.6.1/jquery.min.js' type='text/javascript'/>Warning: Ignore this step if you already have jQuery Code in your Blog.
Adding Widget Code
- Goto Layout > Add a Gadget > HTML /JavaScript
- Add the following code in the content filed;
<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/AVvXsEjQLWLKSj6_qkLjas7K-MJMsGxGjW9TYcI__87FCwLD2ReUa-SMwrY4IX8fag0jCgb79Txa2x0ouxvYT3TUpUUfepGvu1UaglSuj82hhMXtbRe_K_eyWERw5GzxLtXWrkxY5jiBtq_uXmJY/s150/w2b_facebookbadge.png") no-repeat scroll left center transparent !important;display: block;float: left;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"><div>
<iframe src="http://www.facebook.com/plugins/likebox.php?href=http%3A%2F%2Ffacebook.com%2Fehowblogger&width=245&colorscheme=light&show_faces=true& connections=9&stream=false&header=false&height=265" scrolling="no" frameborder="0" scrolling="no" style="border: medium none; overflow: hidden; height: 265px; width: 245px;background:#fff;"></iframe></div></div>
- Save the Widget.
Customization
- Change ehowblogger with your facebook page name.
- If you want to change the background color, change #fff with your color code.
- Use eHowBlogger Color Generator to choose the color of your choice.
Get Latest Updates
0 comments:
Post a Comment
We’re eager to see your comment. However, Please Keep in mind that all comments are moderated manually us according to our comment policy, and all the links are nofollow. Using Keywords in the name field area is forbidden.
Regards:
Zaka Ur Rahman