Hi,
Tried that code and it broke both page up and page down. To reiterate what I am trying to do: When the home page loads, I would like the scroll down button to scroll the page down to a certain point and stop. Currently it just goes to the bottom. The scroll up button works perfectly:
// If a short press is detected, go to end scrolling value for the page
if ( new Date().getTime() <= ( start + longpress ) ) {
// Scroll to top
if($(this).hasClass('backtop'

) {
$('html, body'

.animate({
scrollTop: 1000
}, $animationSpeed);
} else {
// Scroll to end
$('html, body'

.animate({
scrollTop: document.body.scrollHeight || document.documentElement.scrollHeight
},
$animationSpeed);
}
}
Sorry to keep bugging you, I know the answer is here somewhere.
Thanks