$(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() { $("#btt").scrollToTop(); });

  1. brow-of-the-sky reblogged this from laponya
  2. yamihana reblogged this from ji-sn
  3. tothemoonandneverback10 reblogged this from why-kitty-katty
  4. toughloved reblogged this from hanunishi
  5. da-sonickm reblogged this from pe-ga-sus
  6. pe-ga-sus reblogged this from 7okio
  7. 7okio reblogged this from 7okio
  8. achuvalold reblogged this from manytongues
  9. hanunishi posted this