JavaScript auto scroll

From , 5 Years ago, written in JavaScript, viewed 128 times.
URL https://pastebin.vip/view/ae785101
  1. <script type="text/javascript">
  2. /*<![CDATA[*/
  3.     var a,b,c;
  4.     function isAtBottom()
  5.     {
  6.         a=document.documentElement.scrollHeight;
  7.         b=document.documentElement.scrollTop;
  8.         c=document.documentElement.clientHeight
  9.         return ((a-b)<=c);
  10.     }
  11.     function doStuff()
  12.     {
  13.         (isAtBottom())?scrollTo(0,0):scrollBy(0,3);
  14.     }
  15.     window.onload=function(){
  16.         window.setInterval('doStuff()',10);
  17.     }
  18. /*]]>*/
  19. </script>
  20. //javascript/92

Reply to "JavaScript auto scroll"

Here you can reply to the paste above

captcha

https://burned.cc - Burn After Reading Website