Scroll to Top jQuery Button for Blogger

Scroll to Top Button For Blogger

image showing scroll to top widget
Adding scroll to Top button to your blog can help your visitors to reach on the top easily and rapidly.This widget is made of CSS.scrolling effect is due to jQuery.
The button will not appear when the scroll bar is on the top it will appear only when he visitor will scroll down a little.
A live example can be seen on my blog.Try to scroll down little and you will find the button at the right bottom .Below procedure is give for adding this cool button to your blog.





Editing HTML and adding code.

Go to Template → Edit HTML and find </body> . Paste the below code just above </body>


<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;}
</style>
<!-- Scroll to Top Plugin for Blogger by www.bloggertricks4all.blogspot.com-->
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.8.2/jquery.min.js" type="text/javascript"/>
<script type='text/javascript'>
    jQuery(function($) {
        $.fn.scrollToTop = function() {
        $(this).hide().removeAttr(&quot;href&quot;);
        if ($(window).scrollTop() != &quot;0&quot;) {
            $(this).fadeIn(&quot;slow&quot;)
        }
        var scrollDiv = $(this);
        $(window).scroll(function() {
        if ($(window).scrollTop() == &quot;0&quot;) {
        $(scrollDiv).fadeOut(&quot;slow&quot;)
        } else {
        $(scrollDiv).fadeIn(&quot;slow&quot;)
        }
    });
    $(this).click(function() {
        $(&quot;html, body&quot;).animate({
        scrollTop: 0
        }, &quot;slow&quot;)
    })
    }
});
jQuery(function($) {
    $(&quot;#abt-Top&quot;).scrollToTop();
});
</script>
<!-- Scroll to Top Plugin for Blogger by www.bloggertricks4all.blogspot.com-->
    <a href="#" id="abt-Top" style="display: none;">Scroll to Top ↑ </a>   

That`s It...

After pasting this code to your Template Save it.You are done...

Last Words   

If you have any doubt please leave it in Online help Box.

Unknown

Hello, I'm just a small but a good blogger eager to help the newbies over blogging world. I love blogging because it taught me many things and also gave me my life i.e. Programming.