Print Reseller Scheme
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

JavaScript Menu snippit

Discussion in 'Website Design Forum:' started by andthen, Oct 6, 2010.

  1. andthen

    andthen Member

    Hi There,

    Does anyone know where I can find/see a good example of some javascript that takes the user to a specific place of a page horizontally?

    Ive seen this before, dont quite remember what was going on in the script, but basically i want to have my menu follow/stay in one spot and when you click on menu the page moves to where the section is.

    Anyway if anyone knows of a good example that I can rip-off and reverse engineer I would be greatful for a heads up!
     
  2. Levi

    Levi Moderator Staff Member

    something like this
     
  3. Renniks

    Renniks Senior Member

    Was going to link orman clarks site but he changed it so the nav isn't static, but yeh just involves using anchor tags, smooth scroll and static navigation :)
    Don't know of sites that have it, sometimes looks great, other times not so
     
  4. andthen

    andthen Member

    Cheers Levi, Ill check this out!
     
  5. andthen

    andthen Member

    @Renniks,

    Yeah thats what I was thinking, I know theres loads of smooth script out there but couldnt seem to find, and yep the rest basically static Nav and anchors. I think I just wanted to see it in action, but hay hoe I'll nock something up tomarrow, see how it works and post it on DF ready for a grilling! Cheers!
     
  6. Levi

    Levi Moderator Staff Member

  7. andthen

    andthen Member

    Alright Guys,

    Thanks for your suggestions, I tried out your examples but had a few issues when trying to make my page go horizontal, but then found a "softscroll" script on scripterlative . com and bingo bango!

    Thought I would share incase you decided to do a similar thing at some point, and if you wanted to see the result check my site via link in footer (I am still working on site so be gentle!).
     
  8. Harry

    Harry Senior Member

  9. Levi

    Levi Moderator Staff Member

    you never said horizontal :rolleyes:
     
  10. andthen

    andthen Member

    Oh yeah, what a tool I am, i forgot to mention that initially, and for some reason I thought I could faf around with the code myself regardless of its original purpose and make it horizontal some how, clearly I underestimated how much time I was willing to spend on javascript!

    My bad
     
  11. andthen

    andthen Member

    Aye up thats a sweet example, cheers Harry! However I did forget to mention that I wanted a horizontal scrolling code, yep a somewhat vital part of the question I missed out! But I can use this to come up with how to add other features to my menu!
     
  12. Levi

    Levi Moderator Staff Member

  13. Greg

    Greg Active Member

  14. mcskillz

    mcskillz Member

    This is nice too…

    www.aisleone.net

    Pressing the up n down arrows on the keyboard takes you to the top of each article. Nicely done.
     
  15. Greg

    Greg Active Member

  16. andthen

    andthen Member

    @Levi

    That looks interesting man Cheers,
     
  17. andthen

    andthen Member

    @jamiecuatroocho

    Thanks for that, that is nicely done, ill firebug the hell outta it and see whats cracking!
     
  18. Greg

    Greg Active Member

    I did it for you in this post :)
     
  19. andthen

    andthen Member


    @Greg

    Thanks for these, some cool stuff going on them examples and definately a lot to learn!
     
  20. andthen

    andthen Member

    @Greg

    Oh, lol ok Im gonna put that down to a my Friday dopeyness, usually kicks in around this time!

    Cheers
     

Share This Page