The Little Guy Posted October 15, 2008 Share Posted October 15, 2008 If you check out this link: http://www.dctc.edu/future-students/programs/index.cfm and click on a letter, it does a fancy scroll, how can I do that? Quote Link to comment Share on other sites More sharing options...
web_loone_08 Posted October 15, 2008 Share Posted October 15, 2008 This is called an "HTML Anchor" - this is not done with JS. Example <a href="#bottom">Go To Bottom of The Page</a> <div style="height:1000px"><!-- For Demo Purposes Only - Not Part of Actual HTML Anchor --></div> <a name="bottom">Welcome To The Bottom of This Page</a> Quote Link to comment Share on other sites More sharing options...
JasonLewis Posted October 15, 2008 Share Posted October 15, 2008 Um, actually I think TLG was talking about how it does the smooth scrolling down to the letter. @TLG: Looking at the source, I can see that they are using Prototype and also Moo-FX. Check this link. Looks pretty helpful. Quote Link to comment Share on other sites More sharing options...
The Little Guy Posted October 15, 2008 Author Share Posted October 15, 2008 Um, actually I think TLG was talking about how it does the smooth scrolling down to the letter. @TLG: Looking at the source, I can see that they are using Prototype and also Moo-FX. Check this link. Looks pretty helpful. Yup, and thanks for the link! Quote Link to comment Share on other sites More sharing options...
web_loone_08 Posted October 16, 2008 Share Posted October 16, 2008 @ProjectFear I don't see any smooth scrolling when I click on a letter in FireFox; it just jumps to the link, like a normal anchor. That prototype must not work in FF. Quote Link to comment Share on other sites More sharing options...
CroNiX Posted October 16, 2008 Share Posted October 16, 2008 Its a piece of cake using mootools. All you do is var smooth = new SmoothScroll(); and any named anchors on your page will use it. Quote Link to comment Share on other sites More sharing options...
JasonLewis Posted October 16, 2008 Share Posted October 16, 2008 @ProjectFear I don't see any smooth scrolling when I click on a letter in FireFox; it just jumps to the link, like a normal anchor. That prototype must not work in FF. Works for me. At one stage it didn't work but the page was loading, after it had fully loaded it scrolled smoothly. Quote Link to comment Share on other sites More sharing options...
wrongmove18 Posted October 16, 2008 Share Posted October 16, 2008 @web_loone_08 it think you need the page completed loaded first... Quote Link to comment Share on other sites More sharing options...
web_loone_08 Posted October 16, 2008 Share Posted October 16, 2008 well in am using FF v2.0.0.17 & the page fully loads and it still just a normal jumpy anchor. edit: never mind - i see it working now 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.