Hi SilverWolf,
good to see you got the page working!
To solve your problem, look into the sdnestedmenu.js file for the following line:
Code:
//defaultStates - An array of zeros and ones (0,1,1,0) that represent open (0) and closed (1) menus.
//if the array is empty, no default state of menu will be loaded. if the array has values, but not as many as there are menus, you will be alerted.
var defaultStates = new Array(0,0,0,0,0,0,1,0,1,0,1,0,1,1,1,1,1);
If you don't want to define any submenu as open on page load then replace that line with:
Code:
var defaultStates = new Array();
If you want to set one or more menus to be open by default then add enough zeros (0) or ones (1) separated by commas until the message does not appear... hint: the message tells you that you will need 25 of them (one for each submenu including child submenus).
Cheers.
Bookmarks