PDA

View Full Version : Dropdown Menus with subsections help?


colinscotland
29-Mar-2006, 02:12 PM
Hi,
I have got the javascript dropdown menu with sections and subsections working on my site, great! But I want to only show 2 levels of menu on it not 3.
My knowledge of javascript is nil I am just a cut and paste expert using the advanced user guide.

Any help would be much appreciated!

NormanRouxel
29-Mar-2006, 02:44 PM
An URL would help so we can see what you're describing.

colinscotland
29-Mar-2006, 02:57 PM
the URL is www.escapeoutdoors.co.uk (http://www.escapeoutdoors.co.uk)


I need to modify the javascript in Act-Primary for the dropdown menu with subsections to show 1 level of detail less than it does now but dont know how to

NormanRouxel
29-Mar-2006, 05:20 PM
Delete the lump{
if (ar[i].pChild[j].pChild)
{
for (var k=1;k<=ar[i].pChild[j].pChild.length;k++)
{
strIDs += '<OPTION VALUE="' + ar[i].pChild[j].pChild[k].sURL + '">' + '- - ' + ar[i].pChild[j].pChild[k].sName + '</OPTION>';
}
}
}

colinscotland
30-Mar-2006, 08:59 AM
Easy when you know how eh!

It works perfectly now. Many thanks for your time and help.

Colin