MemoryRefresh!

Window scroll



Questions Answers 0%

Pages   0 from 18
Questions   0 from 23

Reset




<script src="https://code.jquery.com/jquery-1.10.2.js"></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>
http://api.jquery.com
https://www.electrictoolbox.com
Questions
1) Scroll down





Last Review: n/a   Passed: n/a   Reviews: n/a   Next Review: n/a  



<script src="https://code.jquery.com/jquery-1.10.2.js"></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>
http://api.jquery.com
https://www.electrictoolbox.com



More from Jquery

Attributes
Data
Effects
Window
Element
Basics
Ajax
Form
Uncategorized


More from Programming

Php
jQuery




Powered by minte9.com