PDA

View Full Version : Resolved Removal of menu item



octopusgrabbus
04-05-2011, 06:05 PM
I went back over my steps. I had done the right thing, but had a javascript syntax error.

My modifiying NoOffFirstLineMenus was correct, and renumbering the lower menu items back one had been done correctly.

--------------------- edit ---------------------------------------
1) Script Title: modified script from examplemenu_var.js

2) Script URL (on DD): http://www.dynamicdrive.com/dynamicindex1/hvmenu/index.htm

3) Describe problem:
I would like to remove one of my menu items. I've tried doing this by changing var NoOffFirstLineMenus=5; // Number of first level items (from 6 to 5); removing the menu code

Menu3 = new Array('rollover:'+SecureURLPrefix+'/Menu/MenuCalendar_Normal.gif:' +
SecureURLPrefix+'/Menu/MenuCalendar_Rolled.gif',
RegularURLPrefix+'/Calendar.html', '', CalMenus, 39, 184);

if (CalMenus = 3)
{
Menu3_1 = new Array('Excise Calendar',
RegularURLPrefix+'/Billing/Scripts/EditDueDates.pl?' +
'TplURL=Calendar/Excise.html', '', 0, 22, 200);
Menu3_2 = new Array('Real Estate Calendar',
RegularURLPrefix+'/Billing/Scripts/EditDueDates.pl?' +
'TplURL=Calendar/RealEstate.html', '', 0, 22, 200);
Menu3_3 = new Array('Water/Sewer Calendar',
RegularURLPrefix+'/Billing/Scripts/EditDueDates.pl?' +
'TplURL=Calendar/Water.html', '', 0, 22, 200);
}

and then re-numbering the remaining menus. If I do this, all menu elements disappear. What other variables need adjusting?

tnx
cmn