advanzd Posted February 9, 2012 Share Posted February 9, 2012 Hi guys I'm working on a horizontal one page site using jquery.I'd like to have a static menu that'll just stay in one place while the rest of the page scrolls to the side.I tried to use this http://dynamicdrive....staticmenu3.htm (it's ugly i know) but when I change the menu buttons to what i want it to be, it doesn't scroll to the side but just goes to the spot i want it to go without having the nice scroll effect. Is it possible with just html5, and how would i do this? Thanks anyway! Link to comment Share on other sites More sharing options...
Ingolme Posted February 9, 2012 Share Posted February 9, 2012 HTML 5 can't do it. CSS 3 can't do it. You can apply position: fixed but it won't move smoothly like you want it to. Only Javascript can do that. It's probably losing the animation when you change the elements because you changed the element the script was trying to refer to. All you need to do to fix it is to make sure the script can point to the right element. Dynamic Drive has some pretty old scripts. Don't copy and HTML from them. Link to comment Share on other sites More sharing options...
advanzd Posted February 9, 2012 Author Share Posted February 9, 2012 Is there a existing script that you know off and can do this? I'm learning javascript on school now but we've just started so i'm not able to do things like this yet. Link to comment Share on other sites More sharing options...
Ingolme Posted February 9, 2012 Share Posted February 9, 2012 Wait until you learn it. I don't know of any existing script because if it were for my site, I'd make it myself so I don't go looking for scripts on the internet. Link to comment Share on other sites More sharing options...
advanzd Posted February 9, 2012 Author Share Posted February 9, 2012 I fixed it with position:fixed works fine, thanks! lock please Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.