Results 1 to 3 of 3

Thread: AJAX Accordian Menus - Can a button show that it was the one that was "Selected"?

  1. #1
    Join Date
    Mar 2007
    Posts
    9
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default AJAX Accordian Menus - Can a button show that it was the one that was "Selected"?

    I'm building a site with the accordian navigation found here and I'm just wondering if there is a way to make a CSS Class that will change the color of the button that was selected when a person clicks in the nav?

    For example, say a person clicks the button "Home" and they are taken to the homepage of a site. Is there a way to define a class in the CSS script that will change the color of the Home button in the navigation to show that the person is on the Home page?

    I have a site that will have quite a few pages so I'm looking to show which page a user is on by changing its color in the navigation when clicked.

    Thanks in advance for any help that anyone can provide.

  2. #2
    Join Date
    Aug 2004
    Posts
    10,143
    Thanks
    3
    Thanked 1,008 Times in 993 Posts
    Blog Entries
    16

    Default

    It's not so much a question of defining a CSS class, but rather, how to tell the script which page it's currently on (and hence select the corresponding link). A similar question was asked here: http://www.dynamicdrive.com/forums/s...ad.php?t=32058

  3. #3
    Join Date
    Mar 2007
    Posts
    9
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Thanks, I think that would be a great feature in the future, but I'm definitely satisfied with the script as-is considering how smooth and awesome it is. Keep up the great work, and thanks for the reply!

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •