Nov 22, 2012

Add Beautiful Transparent CSS Scroll Button to Blogger

In this post i will you how to Add a beautiful Transparent css effect Scroll Button to Blogger in very easy/simple Way .. Follow below Steps to add this Scroll Button to Blogger

  • Login to Blogger  >> Click on drop down >> Now select "Template"
  • Now you can see " EDIT HTML" Button Click on it >>  Now click Proceed button 
  • Now find this tag </body> by using Ctrl+F 
  • Paste below code Before/above </body> tag .
<style type='text/css'>
#egytricks-StoTop {-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;left:5px;cursor:pointer;color:#444;text-decoration:none;border:1px solid #C9C9C9;}
</style>
<script src='https://ajax.googleapis.com/ajax/libs/jquery/1.5.1/jquery.min.js' type='text/javascript'/>
<script type='text/javascript'>
    $(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;)
            })
        }
    });
    $(function() {
        $(&quot;#egytricks-StoTop&quot;).scrollToTop();
    });
</script>
<a href='#' id='egytricks-StoTop' style='display:none;'>Scroll to Top </a>
<script type='text/javascript'>
if (window.jstiming) window.jstiming.load.tick(&#39;widgetJsBefore&#39;);
</script><script src='//www.blogger.com/static/v1/widgets/2000000996-widgets.js' type='text/javascript'/>

Now done Save your Template...

Subscribe Updates, Its FREE!

0 comments:

Post a Comment

 

Copyright @ 2013 EgyTricks.

Designed by Vikash | EgyTricks