Search Box by All Blogger Tricks

Sunday, 8 September 2013

Scroll to Top jQuery Button Widget for Blogger

Freelance Jobs

Want to add a stylish Scroll to Top Plugin to WordPress ? If Yes. Below are few simple steps to do so. The widget uses no image and the button is made from CSS. The scrolling effect in the plugin is due to the jQuery added.

The button will not appear when the scroll bar is at top i.e. page is not scrolled. As one scrolls a button will appear on the right bottom. Below is the procedure to add the button to your Blogger blog.
A demo of the the scroll to top button can be seen by clicking the below button.

Edit HTML and adding the code

Click on Edit HTML option in Blogger and search for  </body> tag in your template by pressing Ctrl + F. Add the below given code just above </body> and save the template. Thats it.

<style type="text/css">
#abt-Top {-moz-border-radius: 5px;-webkit-border-radius: 5px;border-radius: 5px; width:100px;background-color: #EEEEEE;background-color: rgba(238, 238, 238, 0.6);filter: progid:DXImageTransform.Microsoft.gradient(startColorStr=&#39;#99EEEEEE&#39;,EndColorStr=&#39;#99EEEEEE&#39;);text-align:center;padding:5px;position:fixed;bottom:10px;right:10px;cursor:pointer;color:#444;text-decoration:none;border:1px solid #C9C9C9;}
<!-- Scroll to Top Plugin for Blogger by>
<script src="" type="text/javascript"/>
<script type='text/javascript'>
    jQuery(function($) {
        $.fn.scrollToTop = function() {
        if ($(window).scrollTop() != &quot;0&quot;) {
        var scrollDiv = $(this);
        $(window).scroll(function() {
        if ($(window).scrollTop() == &quot;0&quot;) {
        } else {
    $(this).click(function() {
        $(&quot;html, body&quot;).animate({
        scrollTop: 0
        }, &quot;slow&quot;)
jQuery(function($) {
<!-- Scroll to Top Plugin for Blogger by>
    <a href="#" id="abt-Top" style="display: none;">Scroll to Top </a>

You can customize the CSS to match your requirements. You can replace the CSS button with image by changing the CSS background with URL of the image that is using the tag background: url()

Your Scroll to top button is ready.
We hope you have Enjoyed this Widget & find it useful for you. If you have any Problem or Issue with this Widget, Please do visit the Official page of this Widget here and directly ask the developer of this Widget for the Solution by Commenting there.

Need more Customisations ? Comment your combinations
Below and We will add that in this post as soon as Possible


:) :-) :)) =)) :( :-( :(( :d :-d @-) :p :o :>) (o) [-( :-? (p) :-s (m) 8-) :-t :-b b-( :-# =p~ :-$ (b) (f) x-) (k) (h) (c) cheer

Support: Contact Us | Feedback & Support | About Us
Links: Developer | Request/Publish/Remove Widget | Widgets by Widgets Bay
Donate Us via: PayPal Powered by: Blogger
Published by: Widgets Bay | Privacy Policy | Terms of Service
Copyright © 2013Widgets Bay - All Rights Reserved