Results 1 to 1 of 1

Thread: JQuery Help | Accordion Menu

  1. #1
    Join Date
    Aug 2010
    Posts
    10

    JQuery Help | Accordion Menu

    Hello -

    I am designing an art website for a client. She would like the website's accordion navigation to stay open when a user clicks on a sub link and for the color of the link to change while the user is in that particular page.

    I have never worked with JQuery.

    Here is the website for your reference: http://dev.cpworks.org/v01/index-v1.php

    Thank you for your help. Cheers.

    Here is the JQuery Code for the Accordion:

    [QUOTE]window.addEvent('domready', function() {

    //create our Accordion instance
    var myAccordion = new Accordion($('accordion'), '.toggler', '.element', {
    opacity: false,
    alwaysHide: true,
    start:'all-closed',
    onActive: function(toggler, element){
    //toggler.setStyle('color', '#41464D');
    toggler.addClass('active');
    },
    onBackground: function(toggler, element){
    //toggler.setStyle('color', '#528CE0');
    toggler.removeClass('active');
    }
    });

    var goalAccordian = new Accordion($('accordion'), '.goal-toggler', '.goal-element', {
    opacity: true,
    start:'all-closed',

    alwaysHide: true,
    onActive: function(toggler, element){
    toggler.addClass('active');


    },
    onBackground: function(toggler, element){
    toggler.removeClass('active');

    }
    });

    var profileAccordian = new Accordion($('accordion'), '.profile-tab', '.profile-element', {
    opacity: true,


    alwaysHide: true,
    onActive: function(toggler, element){
    toggler.addClass('active');


    },
    onBackground: function(toggler, element){
    toggler.removeClass('active');

    }
    });


    });
    [QUOTE]
    Last edited by Android-Does; 15 Oct 2010 at 05:21 PM.

Similar Threads

  1. Accordion Menu with internal custom scrollbars?
    By Lain in forum Client & Server Side Scripting (PHP, ASP, JavaScript)
    Replies: 0
    Last Post: 06 Jan 2010, 02:20 PM
  2. Dropdown menu with css and javascript...?
    By AllanH in forum Client & Server Side Scripting (PHP, ASP, JavaScript)
    Replies: 1
    Last Post: 14 May 2009, 02:59 AM
  3. CSS Drop down menu in IE problem..
    By mylah in forum Web Design, HTML Reference and CSS
    Replies: 0
    Last Post: 24 Mar 2009, 08:41 AM

Posting Permissions

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