J!Extensions Store™
Forum
Welcome, Guest
Please Login to access forum.
Re:Modify scroll to bottom (1 viewing) 
Go to bottom
TOPIC: Re:Modify scroll to bottom
#4222
Atlanta Internet Design
Junior Boarder
Posts: 25
User Offline
Re:Modify scroll to bottom Karma: 1  
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
 
Logged Logged  
  The administrator has disabled public write access.
      Topics Author
    emo
Modify scroll to bottom
Atlanta Internet Design
    thread link
thread linkthread link Re:Modify scroll to bottom
John Dagelmore
    thread link
thread linkthread linkthread link Re:Modify scroll to bottom
Atlanta Internet Design
    thread link
thread linkthread linkthread linkthread link Re:Modify scroll to bottom
John Dagelmore
    thread link
thread linkthread linkthread linkthread linkthread link Re:Modify scroll to bottom
Atlanta Internet Design
    thread link
thread linkthread linkthread linkthread linkthread linkthread link Re:Modify scroll to bottom
John Dagelmore
    thread link
thread linkthread linkthread linkthread linkthread linkthread linkthread link Re:Modify scroll to bottom
Atlanta Internet Design
    thread link
thread linkthread linkthread linkthread linkthread linkthread linkthread linkthread link Re:Modify scroll to bottom
John Dagelmore
    thread link
thread linkthread linkthread linkthread linkthread linkthread linkthread link Re:Modify scroll to bottom
Atlanta Internet Design
    thread link
thread linkthread linkthread linkthread linkthread linkthread linkthread linkthread link Re:Modify scroll to bottom
John Dagelmore
Go to top