SHARE
TWEET

iklan-mengikuti-scrol-blogspot

a guest Jan 2nd, 2019 69 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <script type='text/javascript'>
  2. //<![CDATA[
  3. $(function () {
  4.     var offset = $("#HTML1").offset();
  5.     var topPadding = 0;
  6.     $(window).scroll(function () {
  7.         if ($(window).scrollTop() > offset.top) {
  8.             $("#HTML1").stop().animate({
  9.                 marginTop: $(window).scrollTop() - offset.top + topPadding
  10.             })
  11.         } else {
  12.             $("#HTML1").stop().animate({
  13.                 marginTop: 0
  14.             })
  15.         }
  16.     })
  17. });
  18.         //]]>
  19. </script>
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top