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? Link to comment https://forums.phpfreaks.com/topic/128488-scrolling/ 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> Link to comment https://forums.phpfreaks.com/topic/128488-scrolling/#findComment-665970 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. Link to comment https://forums.phpfreaks.com/topic/128488-scrolling/#findComment-665974 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! Link to comment https://forums.phpfreaks.com/topic/128488-scrolling/#findComment-666404 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. Link to comment https://forums.phpfreaks.com/topic/128488-scrolling/#findComment-666682 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. Link to comment https://forums.phpfreaks.com/topic/128488-scrolling/#findComment-666690 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. Link to comment https://forums.phpfreaks.com/topic/128488-scrolling/#findComment-666838 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... Link to comment https://forums.phpfreaks.com/topic/128488-scrolling/#findComment-666850 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 Link to comment https://forums.phpfreaks.com/topic/128488-scrolling/#findComment-666877 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.