jquery Programming Glossary: canscroll
Treating each div as a “page” when scrolling http://stackoverflow.com/questions/12849439/treating-each-div-as-a-page-when-scrolling .scroll event combined with function updatePosition if canScroll var pageName canScroll false var st window .scrollTop if st.. with function updatePosition if canScroll var pageName canScroll false var st window .scrollTop if st lastScrollTop downscroll.. .animate scrollTop pageName .offset .top 2000 function canScroll true else upscroll code if pageNumber 0 pageNumber pageName..
Treating each div as a “page” when scrolling http://stackoverflow.com/questions/12849439/treating-each-div-as-a-page-when-scrolling moves you to the next div . What I've tried Using the jQuery .scroll event combined with function updatePosition if canScroll var pageName canScroll false var st window .scrollTop if st lastScrollTop downscroll code if pageNumber 7 pageNumber .. div . What I've tried Using the jQuery .scroll event combined with function updatePosition if canScroll var pageName canScroll false var st window .scrollTop if st lastScrollTop downscroll code if pageNumber 7 pageNumber pageName '#' getPageToScrollTo.. 7 pageNumber pageName '#' getPageToScrollTo .id 'body' .animate scrollTop pageName .offset .top 2000 function canScroll true else upscroll code if pageNumber 0 pageNumber pageName '#' getPageToScrollTo .id 'body' .animate scrollTop pageName..
|