$(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(); });

“Owners of dogs will have noticed that, if you provide them with food and water and shelter and affection, they will think you are god. Whereas owners of cats are compelled to realize that, if you provide them with food and water and shelter and affection, they draw the conclusion that they are gods.”
—Christopher Hitchens, The Portable Atheist: Essential Readings for the Nonbeliever

  1. livesolareclipsemoodycrissy 那裡轉格了這篇
  2. phantomiqueimpoliteness 那裡轉格了這篇
  3. moodycrissyimpoliteness 那裡轉格了這篇
  4. impoliteness 張貼了這篇