Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7636185
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T07:36:35+00:00 2026-05-31T07:36:35+00:00

My page is a single page website which has a pageslide navigation on the

  • 0

My page is a single page website which has a pageslide navigation on the side which has an id of “navigation”. My main section is a fully fluid 100% wide design and it only changes when a button on the side is pressed to reveal the navigation menu. On this navigation menu, I want to be able to change the class of the links between two classes e.g “active” and “nonactive” and i want this to change depending on the position the user is scrolled at, i.e if the position the user is scrolled at is on the div id of “about”, i want the class in the navigation that links to about to have a class of “active” and the rest of the links as “nonactive”. This will be for every link.

My website is at http://sandbox.modernturtle.com

Any help would be appreciated 🙂

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-31T07:36:37+00:00Added an answer on May 31, 2026 at 7:36 am

    Twitter Bootstrap has a plugin that does this for you. Here is a demo: http://twitter.github.com/bootstrap/javascript.html#scrollspy

    EDIT:
    Initialize the plugin like so:

    $('#navigation').scrollspy();
    

    Then add the data-spy attribute to the body tag:

    <body data-spy="scroll" >...</body>
    

    And at last (this step you already have on your site), match the navigation link’s href to the div’s id:

    <a href="#about" onclick="$.scrollTo( '#about', 1000, {easing:''} ); CngClass(this);" class="selected">about</a>
    
    <div id="about">
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a single page website which has a fixed floating nav. I want
I'm working on a mobile website (it's not a single page app) which has
We have a large ASP.Net website that has a single css stylesheet which is
I have modified a website with a redirection to a single page: RewriteCond %{REQUEST_FILENAME}
I am trying to redirect everything to a single page from my /website/folder/ directory.
I'm developing a website. I'm using a single-page web-app style, so all of the
I use Java Applet like an example. When you open a website which has
I'm building a small-scale website (a personal one) in which each page would have
Here's the scenario, i have a website, which in a single HTTP request (HTTP
I have an image upload page (single page). When submitted it check filesize and

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.