Discover scroll up down jquery example, include the articles, news, trends, analysis and practical advice about scroll up down jquery example on alibabacloud.com
jquery Get scroll bar height
Get the height of the browser display area:
$ (window). Height ();
Get the width of the browser display area:
$ (window). width ();To get the document height of a page:$ (document). Height ();Gets the document width of the page: $ (document). width ();
Gets the vertical height of the scroll bar to the top:
$ (document). ScrollTo
Nicescroll is the jq plug-in for creating custom scroll bars. Supports div, iframe, html, and so on using the following: [javascript] lt; scriptsrc quot; js/jquery. nicescroll/jquery. nicescroll. js quot; type quot; text/javascript quot; gt Nicescroll is the jq plug-in for creating custom scroll bars. Supports di
Share a page parallax scroll switch jquery. localscroll plug-in, jqueryscroll
Today, we will share with you a jquery. localscroll plug-in for page parallax scrolling. Scroll the mouse animation bar to see the switch Effect on the next page. This plug-in is applicable to browsers such as IE8, 360, FireFox, Chrome, Safar
This article mainly introduces the image click-and-scroll effect implemented by jquery. For more information, see Add a jquery file.
The Code is as follows:
Click the left and right buttons to scroll the image horizontally. jquery will scroll four times at a time. After the image is finished, it will automatically return to the first layout:
As follows:
[Html]
Click the left and right buttons to scroll the image horizontally. jquery will scroll four times at a time. After the image is finished, it will automatically return to the first layout:As follows::Copy codeThe Code is as follows:
Part of the shopping site with this function to put shopping cart or commodity classification navigation, so that the product page is very long, the sidebar can always be fixed to play its due role, and some sites with this feature to the sidebar ads.
jquery Code:
Copy Code code as follows:
var Rollset = $ (' #Roll ')//Check object, #sidebar-tab is the ID to be fixed with the scroll bar, can be ch
To set the way in which the scroll bars are automatically rolled when the page loads:
Jquery:
Copy Code code as follows:
$ (function () {
var h = $ (document). Height ()-$ (window). Height ();
$ (document). ScrollTop (h);
});
Javascript:
Copy Code code as follows:
Window.onload = function () {
var h = document.documentElement.scrollHeight | | Document.body.scrollHeight;
Wi
(function () {// fill the lower part with the upper content $ ("# bottom" ).html ($ ("# top" ).html ()); // bind a mouse event to the displayed area $ ("# content "). bind ("mouseover", function () {StopScroll () ;}); $ ("# content "). bind ("mouseout", function () {StartScroll () ;}); // start the timer and start the rolling function StartScroll () {objInterval = setInterval ("verticalloop ()", interval);} // clear the timer and stop the rolling function StopScroll () {window. clearInterval (o
The following small make up will bring you a DIV rolling with the scroll bar to implement the Code [recommended ]. I think it is quite good. Now I will share it with you and give you a reference. Let's take a look at the small editor. I remember it was troublesome to write such code before. Now JQuery is much simpler, just a few lines of code!
It's convenient to use it later. Introducing CSS files into class= "Mscroll"> where to put the content Ah ah ah, here what to put content ah ah ah ah, here to put the content Ah ah ah ah ... div>jquery scroll bar plug-ins can be customized
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.