How to Add Scroll To Top Button To Your Blogger Blogger
- Go to Blogger Dashboard > Template > Edit HTML
- Use Ctrl + F to find this code </body>
- Copy and Paste The Below Code Above </body>
- Now Press Ctrl + F & Find ]]></b:skin>
- Paste The Below Code Above ]]></b:skin>
- Save Your Template. You Are Done!
<a href=”#” id=”backtotop”>^ Scroll to Top</a><script src=’http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js’ type=’text/javascript’></script><script type=’text/javascript’>/*———————–*Scroll to top———————–*/$(function(){$.fn.scrollToTop=function(){$(this).hide().removeAttr(“href”);if($(window).scrollTop()!=”0″){$(this).fadeIn(“slow”)}var scrollDiv=$(this);$(window).scroll(function(){if($(window).scrollTop()==”0″){$(scrollDiv).fadeOut(“slow”)}else{$(scrollDiv).fadeIn(“slow”)}});$(this).click(function(){$(“html, body”).animate({scrollTop:0},”slow”)})}});$(function() {$(“#toTop”).scrollToTop();});</script>
#backtotop { width:100px;background:#F4FFBF;border:1px solid #ccc;text-align:center;padding:5px;position:fixed;bottom:10px;right:10px;cursor:pointer;color:#666;text-decoration:none; }
Note: Author – buttonscrollingAdd Enhanced AddThis Sharing Tool To Your Blog
