MemoryRefresh!

Element / Window scroll     Window scroll



Questions Answers 0%

Pages   0 from 16
Questions   0 from 21

Reset



<script src="code.jquery.com"></script> <style> div {height: 2000px;} </style> <button id="1">Down</button> <div></div> <button id="2">Up</button> <script> $("#1").click(function () { $('html, body').animate({scrollTop:10000}, 'slow'); // animation slow }); $("#2").click(function () { $('html, body').scrollTop('0px'); // no animation }); </script> api.jquery.com electrictoolbox.com
1) Scroll down









<script src="code.jquery.com"></script> <style> div {height: 2000px;} </style> <button id="1">Down</button> <div></div> <button id="2">Up</button> <script> $("#1").click(function () { $('html, body').animate({scrollTop:10000}, 'slow'); // animation slow }); $("#2").click(function () { $('html, body').scrollTop('0px'); // no animation }); </script> api.jquery.com electrictoolbox.com





Programming

Php
   
Regex
   
MySQL
   
Css
   
jQuery
   
Git
   


References
n/a