Ok so your accordion's are being set on 3 seperate id's
   
  #theMenu
  #xtraMenu
  #xtraMenu2
   
  Did you try something like this?
   
 jQuery('#xtraMenu').activate(0);  


tegansnyder <[EMAIL PROTECTED]> wrote:
  
ripple,

First I would like to say thanks for the quick response.

I have tried your suggestions. It works for the top level menus
perfectly, but I wanted to activate the sub-level - nested menus?

On May 19, 11:42 am, ripple wrote:
> Did you try?
>
> jQuery('#theMenu').activate(0);
> jQuery('#theMenu').activate(1);
>
> Treat the accordions as elements in an array. 0 = 1st, 1 = 2nd etc...
>
> tegansnyder wrote:
>
> Hello Everyone,
>
> I have a built a nice accordion style menu and need a little
> assistance.
>
> You can see it in action athttp://www.tegdesign.com/menu/
>
> Currently I’m having it open the first element by placing the
> following code in the jQuery ready function:
>
> jQuery('#theMenu').activate(0);
>
> What I want to be able to do is activate an element of a sublevel. For
> instance say I wanted to have the (Commercial – Solutions) activate
> and open to show all children in Solutions.
>
> In the JS folder there is the accordion.js file. If you open it up it
> does have a little documentation about this:
>
> * Activate a content part of the Accordion programmatically at the
> given zero-based index.
> *
> * If the index is not specified, it defaults to zero, if it is an
> invalid index, eg. a string,
> * nothing happens.
> *
> * @example jQuery('#accordion').activate(1);
> * @desc Activate the second content of the Accordion contained in
> .
> *
> * @example jQuery('#nav').activate();
> * @desc Activate the first content of the Accordion contained in id="nav">.
> *
> * @param Number index (optional) An Integer specifying the zero-based
> index of the content to be
> *
> activated. Default: 0
>
> I also have a zip file containing all the needed 
> files:http://www.tegdesign.com/menu/menu.zip
>
> Just wanted to see if anyone could put a fresh pair of eyes on this.
> Anything would be helpful.


       

Reply via email to