Results 1 to 1 of 1

Thread: Removal of menu item

  1. #1
    Join Date
    Apr 2011
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Removal of menu item

    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/dynamici...menu/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
    Last edited by octopusgrabbus; 04-05-2011 at 06:28 PM. Reason: Solved

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •