Go Back   CodingForums.com > :: Client side development > HTML & CSS

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 01-02-2013, 05:01 PM   PM User | #1
joelbrandman
New Coder

 
Join Date: Aug 2012
Posts: 10
Thanks: 4
Thanked 0 Times in 0 Posts
joelbrandman is an unknown quantity at this point
menu system that automatically scrolls down the page

Hi,

Can anyone help me achieve this effect seen in the example provided,
http://www.barrelny.com/24/

I want to create this technique of having a fixed menu at the top and when you click one of the options in the navigation menu it automatically scrolls to the chosen area of the page.

Its the scrolling technique i am after the most!

Thank you.
joelbrandman is offline   Reply With Quote
Old 01-02-2013, 06:45 PM   PM User | #2
JT Web Design
New Coder

 
Join Date: Jun 2012
Location: Burnley, Lancashire UK
Posts: 12
Thanks: 0
Thanked 3 Times in 3 Posts
JT Web Design is an unknown quantity at this point
Hi joelbrandman,

For this effect you need to use an anchor then reference that anchor in your link.

so for example on about.html

<body>

<a name="aboutme">About Me</a>
This is about me.

</body>

And your menu link will look something like this

www.yoursite.com/about.html#aboutme

Last edited by JT Web Design; 01-02-2013 at 06:49 PM..
JT Web Design is offline   Reply With Quote
Old 01-02-2013, 07:40 PM   PM User | #3
Excavator
Master Coder


 
Excavator's Avatar
 
Join Date: Dec 2006
Location: Alaska
Posts: 9,410
Thanks: 22
Thanked 1,765 Times in 1,749 Posts
Excavator has a spectacular aura aboutExcavator has a spectacular aura aboutExcavator has a spectacular aura about
Hello joelbrandman,
That page you link to uses <a href="#meetbarc"> in the menu to scroll down to <a class="anchorlink" name="meetbarc"> </a>

Would use an id instead of name. Like this - <a class="anchorlink" id="meetbarc"> </a>

That page also uses a bit of js for a scrolling transition, a page anchor would just jump to the spot linked further down the page without it. See a jQuery ScrollTo here. I did not look to see what scrolling js is actually used on that page...
__________________
Validate often DURING development - Use it like a splelchecker | Debug during Development |Write it for FireFox, ignore IE
Use the right DocType | Validate your markup | Validate your CSS | Why validating is good | Why tables are bad
Excavator is offline   Reply With Quote
Reply

Bookmarks

Tags
auto scroll, jquery, menu, scrolling

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 06:39 AM.


Advertisement
Log in to turn off these ads.