Feedback

27 Nov 2012

Vertical Sharing bar {advance scrolling} for blogger

https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhECPPUqQYtvb3YJwDflWoE2l4X_3LlmG4D44oXE2xqouRYQff4b_B-fWrh90biiNWpQskxSXi7JNZsXzNMpibtFXb95_aTIQRt8EpqmlXED3mKGEkgjGdtoUlKP4wJV22NcZm6X9QNXl8/s400/Floating-Vertical-Bar-With-Share-Buttons-for-bloggers.jpg
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: &#39;en-US&#39;} </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.
 

People

My Photo
We are also on Facebook We are on Twitter Home Page
Hello friends i am Jaskaran SH SD from Amritsar (Punjab) India. I love blogging. First I started a blog on science in 2010. Now I handle only this blog. I like to share the things which I know. I learn many things through blogging. I always try to make different that's why I learn many things. 

About Blog

Construct Internet is one of dedicated source for Internet, Computer and technology tutorials and development. It is Started in Oct 21 2012. We provide a professional tools for websites and blogging, along with a wide range of tutorials, How to fix etc. for computers and other technology development. Social news, Business and Social Science like topics are also followed in our blog.

We 'r Social

2012-2013 Construct Internet. Copying Without Permission is Strictly Prohibited.