Rank: Newbie Groups: Member
Joined: 6/28/2007 Posts: 5
|
Using Client Side Javascript
I am using dynamic menus turning items on and off by passing flags.
Is there a way to turn all menu items off at one time, Or can use some type of for each statement in JavaScript to turn off all menu items and then turn on only the ones I want?
Thans in Advance.
Larry
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,217
|
Hi Larry,
Unfortuntely no. You will have to use a for loop to loop through each menu item and turn them off individually.
Thanks
|
Rank: Newbie Groups: Member
Joined: 6/28/2007 Posts: 5
|
Is there a way to get the Count of menu items?
I can call .getTopGroup(); to get the top menu group item.
Then If there is a way to get a count of sub items then I could do a for loop on menuTopGroup.length or something like that.
Thanks Larry
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,217
|
|