How To Add Simple Go to Top Button To Blogger

Posted by محمد On Thursday, August 2, 2012 0 comments
Hello reader’s In this post I will give you a tutorial about adding the simple Go to top button to your blogger blog With Css And JQuery. When any visitor clicks on it the Scrolling Starts from bottom with a Certain speed and it Ends with Gradually Decreases the speed,this effect is looks more attractive.You Can see a Demo in My blog :)

Now lets see how to add  this button to your blogger :
  • Go to Blogger Dashboard > Design > Edit HTML.
  • search for this Code </body> .
  • Add below code just above/before </body> tag.
<style type="text/css">
#hb-gotop{-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='#99EEEEEE',EndColorStr='#99EEEEEE');text-align:center;padding:5px;position:fixed;bottom:10px;right:10px;cursor:pointer;color:#444;text-decoration:none;border:1px solid #C9C9C9;}
<script type="text/javascript" src=""></script>
<script type='text/javascript'>
$(function() {
$.fn.scrollToTop = function() {
if ($(window).scrollTop() != "0") {
var scrollDiv = $(this);
$(window).scroll(function() {
if ($(window).scrollTop() == "0") {
} else {
$(this).click(function() {
$("html, body").animate({
scrollTop: 0
}, "slow")
$(function() {
<a href='#' id='hb-gotop' style='display:none;'>Scroll to Top</a>
  • Save Your template And Your have successfully added this button to your blog.


Post a Comment

Facebook Page