how to add like this one http://prntscr.com/286gig it appear only on bottom of the page and if i click on it i got to top of page
Last edited by Jack Atlas on December 7th 2013, 3:00 pm; edited 1 time in total (Reason for editing : soved)
<a style="position: fixed; bottom:5px;left:5px;" href="#" title="Back to Top"><img style="border: none;" src="https://cdn1.iconfinder.com/data/icons/tango/22x22/actions/go-top.png"/></a>
$(function() {
$(window).scroll(function() {
if($(this).scrollTop() != 0) {
$('#dailytop').fadeIn();
} else {
$('#dailytop').fadeOut();
}
});
$('#dailytop').click(function() {
$('body,html').animate({scrollTop:0},500);
});
});
#dailytop{
bottom: 50px;
color: #FFFFFF;
cursor: pointer;
display: none;
font-size: 14px;
opacity: 0.6;
padding: 8px;
position: fixed;
text-align: center;
z-index: 999;
right: 30px;
background-color : #000;
border-radius : 8px;
-webkit-border-radius : 8px;
-moz-border-radius : 8px;
}
#dailytop{
opacity : 0.9;
}
<div id="dailytop">^ Back to Top</div>
<div style="position:fixed; right:0.1%; bottom:45%;">
    <div id="nav_up"><img src="http://i56.servimg.com/u/f56/18/45/97/69/up11.png" alt="Go Up" title="Go Up" border="0"></div>
    <div id="nav_down"><img src="http://i56.servimg.com/u/f56/18/45/97/69/down11.png" alt="Go Down" title="Go Down" border="0"></div>
    </div>
       <script type="text/javascript">
        jQuery(function() {
          var overelem = jQuery('body');
       Â
          jQuery('#nav_up').fadeIn('slow');
          jQuery('#nav_down').fadeIn('slow');
                 Â
          jQuery('#nav_down').click(
           function (e) {
             jQuery('html, body').animate({scrollTop: overelem.height()}, 1100);
           }
          );
          jQuery('#nav_up').click(
           function (e) {
             jQuery('html, body').animate({scrollTop: '0px'}, 1100);
           }
          );
          });
        </script>