Basically what I am trying to do is this:
http://djpate.com/portfolio/scrollTop/
But have the menu on the left hand side which floats and when the screen scrolls down the navigation hits the top of the browser window and just stays there, unless I click on anchor 1 and then the screen scrolls back up and the navigation sits in its original position - inline with Anchor 1 heading.
e.g.
Home -> HEADING one
Link2
Link3
Link4
e.g.
Click on Link3 - page scrolls down to link3 heading
Home
Link2
Link3 -> Heading 3
Link4
Does anyone have any examples of how to do this, we have tried a number of options but can't get it to work with a top navigation bar.
Thanks,
Owain.



Reply With Quote
You just needed to set the position of the menu to fixed (css=> position:fixed). I also removed the inline javascript from the links, as that typically a bad idea. It's better to make your links classes, and assign the class a function, instead of assigning individual links a function...imagine if you had to change it - you'd have to go back and update each individual links onClick event!!!

Bookmarks