karldesign Posted October 3, 2007 Share Posted October 3, 2007 Hi, I would really like to implement smooth scrolling for anchor links, and the script I have works great: scrolls up and down and where I want it... however, I have some anchor links that link to a new page and wandered if anyone knew a way of scrolling on the page load, rather than just jumping down. Cheers in advance. Quote Link to comment Share on other sites More sharing options...
fenway Posted October 3, 2007 Share Posted October 3, 2007 setTimeout and scrollIntoView. Quote Link to comment Share on other sites More sharing options...
karldesign Posted October 9, 2007 Author Share Posted October 9, 2007 I'm not familiar with javascript at all, ideally i wouldn't use it, so could you explain more? Quote Link to comment Share on other sites More sharing options...
fenway Posted October 9, 2007 Share Posted October 9, 2007 I'm not familiar with javascript at all, ideally i wouldn't use it, so could you explain more? If you're unfamiliar, I suggest you find some examples to copy... Quote Link to comment Share on other sites More sharing options...
RichardRotterdam Posted October 9, 2007 Share Posted October 9, 2007 something like this maybe? http://demos.mootools.net/Fx.Scroll Quote Link to comment Share on other sites More sharing options...
cursed Posted October 16, 2007 Share Posted October 16, 2007 You could of used google (javascript smooth scrolling) and look, 3rd result: http://www.dezinerfolio.com/2007/08/08/df-javascript-smooth-scroll/ Quote Link to comment Share on other sites More sharing options...
karldesign Posted October 31, 2007 Author Share Posted October 31, 2007 I have searched Google many times, and all these solutions are great for single page movements... I have that working. The problem is smooth scrolling to on a new page: ie: I click www.somelink.com/index.php#anchor the link reloads the page to somelink.com/index.php and THEN i want the page to smooth scroll to that anchor... Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.