Add a Floating facebook Like page in blog

Try this new way to Add a Floating facebok Like page in blog.



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>



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() {$(".ssslikebox").hover(function() {$(this).stop().animate({right: "0"}, "medium");}, function() {$(this).stop().animate({right: "-250"}, "medium");}, 500);});
//-->
</script>
<style type="text/css">
.ssslikebox{background: url("https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhOv-pmFoX-4N_HZ3Dko872-NR_FxFnbFOStDs-dL7Z1ZMS_vETIK-5AFi8qV4TB7gmiaPmaORzDvp1Y4ypT2XB_lMaaKkpq3crPKvsFnVF7oPQIW-9_f_Jq7sMVIXL_VNHhsGJDVjIjQgu/s150/w2b_facebookbadge.pn") 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%;}
.ssslikebox div{border:none;position:relative;display:block;}
.ssslikebox span{bottom: 12px;font: 8px "lucida grande",tahoma,verdana,arial,sans-serif;position: absolute;right: 6px;text-align: right;z-index: 99999;}
.ssslikebox span a{color: #808080;text-decoration:none;}
.ssslikebox span a:hover{text-decoration:underline;}
</style><div class="ssslikebox" style=""><div><iframe src="http://www.facebook.com/plugins/likebox.php?href=http%3A%2F%2Ffacebook.com%2FAdminsClub&amp;width=245&amp;colorscheme=light&amp;show_faces=true&amp;connections=9&amp;stream=false&amp;header=false&amp;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://www.strikingsoon.com/">Strikingsoon</a> / <a href="http://blogger.strikingsoon.com/2011/08/sliding-facebook-likebox-widget-for.html">+Get This!</a></span></div></div>

Replace http%3A%2F%2Ffacebook.com%2FAdminsClub, with your Facebook fan page URL.

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





No comments:

Post a Comment