
We all are well aware of the importance of social media integration in Blogs and websites and the magic it can play to bring in viral traffic. With content that is capable of deriving attention, social media is certainly not going to put you down in that regard.
Looking forward to that, we today have yet another social media sharing widget for Blogger and WordPress blogs that grabs attention of the reader due to its 'Thumbs Up' icon embedded with in it. The widget holds social sharing buttons for Facebook, Twitter and Google+.
The widget slides from a certain distance from top. So you can setup a specific distance after which it could start sliding down with the page
Implementation:
Go to Blogger Dashboard >> Layout >> Add a Gadget >> HTML/JavaScript and paste the following code in it:
<script>
window.onload = function() {
function getScrollTop() {
if (typeof window.pageYOffset !== 'undefined' ) {
// Most browsers
return window.pageYOffset;
}
var d = document.documentElement;
if (d.clientHeight) {
// IE in standards mode
return d.scrollTop;
}
// IE in quirks mode
return document.body.scrollTop;
}
window.onscroll = function() {
var box = document.getElementById('Scrolling-fixed'),
scroll = getScrollTop();
if (scroll <= 700) {
box.style.top = "760px";
}
else {
box.style.top = (scroll + 60) + "px";
}
};
}
</script>
<style>
#Scrolling-fixed {
position: absolute;
}
#floatdiv {
bottom:15%;
margin-left:-850px;
z-index:-9999;
float:left;
padding-bottom:2px;
}
#mbtsidebar {
background:#fff;
border-top:2px solid #90A4BF;
border-left:1px solid #90A4BF;
border-bottom:1px solid #90A4BF;
border-right:1px solid #90A4BF;
border-radius:8px;
-moz-border-radius:5px;
-webkit-border-radius:5px;
padding-left:5px;
width:60px;
margin:0 0 0 5px;
}
.fb_share_count_top {width:52px !important;}
.fb_share_count_top, .fb_share_count_inner {-moz-border-radius:3px;-webkit-border-radius:3px;}
.FBConnectButton_Small, .FBConnectButton_RTL_Small {width:52px !important; -moz-border-radius:3px;/*bs-fsmsb*/-webkit-border-radius:3px;}
.FBConnectButton_Small .FBConnectButton_Text {padding:2px 2px 3px !important;-moz-border-radius:3px;-webkit-border-radius:3px;font-size:8px;}
</style>
<div id="Scrolling-fixed">
<div id="floatdiv">
<div id="mbtsidebar">
<table cellpadding="1px" cellspacing="0">
<tr>
<td style="padding:5px 0px 0px 0;">
<span><img src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiHGNVDyflPc2kS7EDo4e_iNwgJhBAkqNGmv8krYcE9pNXCUdP9C37WtyS4qbBw-WLmV-NxqIPy6nb15HUYb22yD5vi1A01Ms_Rw04dK0rSvhg6TlcZoWiEHvYZ1EF-WP-i3Ga-25xO7qg/s1600/thumbs+up.png" /></span>
</td>
</tr>
<tr>
<td style="padding:5px 0px 0px 0;">
<a href="http://twitter.com/share" class="twitter-share-button" data-count="vertical" data-via="Bloggingehow">Tweet</a><script type="text/javascript" src="http://platform.twitter.com/widgets.js"></script>
</td>
</tr>
<tr>
<td style="padding:5px 0 2px 0;">
<div id="fb-root"></div><script src="http://connect.facebook.net/en_US/all.js#xfbml=1"></script><fb:like href="" send="false" layout="box_count" show_faces="false" font=""></fb:like>
</td>
</tr>
<tr>
<td style=" padding:5px 0px 0px 0px;">
<script src='http://apis.google.com/js/plusone.js' type='text/javascript'> {lang: 'en-US'} </script>
<g:plusone size="Tall" expr:href="data:post.url">
</g:plusone></td>
</tr>
<tr>
<td style="padding:2px 0px 0px 0;">
<p style=" line-height:0px; font-size:8px; font-weight:bold; text-align:center"><a style="color:#D3D3D3;" href="http://www.bloggingehow.com">widgets</a></p>
</td>
</tr>
</table>
</div>
</div></div>
YOU NEED TO RESTRICT IT YOUR SELF FOR CERTAIN PAGES.