Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <script type="text/javascript">
- jQuery(function () {
- jQuery(document).ready(function () {
- jQuery("#back-top").hide();
- jQuery(function () {
- jQuery(window).scroll(function () {
- if (jQuery(this).scrollTop() > 100) {
- jQuery('#back-top').fadeIn('slow');
- } else {
- jQuery('#back-top').fadeOut('slow');
- }
- });
- jQuery('#back-top a').click(function () {
- jQuery('body,html').animate({
- scrollTop : 0
- }, 1300);
- return false;
- });
- });
- });
- });
- </script>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement