#backtotop {
  background: url(../button-top.jpg) no-repeat center center;
  cursor: pointer;
  display: none;
  bottom:10px;
  width: 40px;
  height: 40px;
  position: fixed;
  right: 10px;
  text-indent:-9999px;
  width: 40px;
  z-index: 999;
  opacity: 0.5;
}

#backtotop:hover {
  background: url(../button-top-o.jpg) no-repeat center center;
   -moz-transition: all 0.3s ease-out 0s;
   -webkit-transition: all 0.3s ease-out 0s;
   -o-transition: all 0.3s ease-out 0s;
   opacity: 1;
}

<!--[if lte IE 6]>
html {
  overflow-x: auto;
  overflow-y: hidden;
}

* html #backtotop {
  position:absolute;
}
<![endif]-->

@media (-webkit-min-device-pixel-ratio: 2), 
(min-resolution: 192dpi) { 

  #backtotop {
    background: url(../button-top-o.jpg) no-repeat center center;
    background-size: 50px 50px;
    opacity: 0.5;
  }

}



@media screen and (max-width: 740px){
    #backtotop {bottom:45px;}
}