Results 1 to 4 of 4

Thread: How to add an extra select box?

  1. #1
    Join Date
    Feb 2009
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default How to add an extra select box?

    1) Script Title:
    Chained select menu
    2) Script URL (on DD):
    http://www.dynamicdrive.com/dynamici...menu/index.htm
    3) Describe problem:
    I want to add an extra select drop down instead of having three have four.
    My code works for the three drop downs, here is my config.js, thank you for any ideas:

    Code:
    //var hide_empty_list=true; //uncomment this line to hide empty selection lists
    var disable_empty_list=true; //uncomment this line to disable empty selection lists
    
    var onclickaction="alert" //set to "alert" or "goto". Former is for debugging purposes, to tell you the value of the final selected list that will be used as the destination URL. Set to "goto" when below configuration is all set up as desired. 
    
    var newwindow=0 //Open links in new window or not? 1=yes, 0=no.
    
    /////DEFINE YOUR MENU LISTS and ITEMS below/////////////////
    
    addListGroup("chainedmenu", "First-Select");
    
    addOption("First-Select", "Select..", "", 1); //HEADER OPTION
    addList("First-Select", "AMERICAN MOTOR", "", "AmericanMotor");
    addList("First-Select", "News Sites", "", "News");
    addList("First-Select", "Car Sites", "", "Cars");
    
    addOption("AmericanMotor", "Select..", "", 1); //HEADER OPTION
    addList("AmericanMotor", "motor", "", "Webmaster-motor");
    addList("AmericanMotor", "truck", "", "Webmaster-truck");
    addList("AmericanMotor", "camper", "", "Webmaster-camper"); //END OF THIS NODE
    
    addOption("Webmaster-motor", "Select..", "", 1); //HEADER OPTION
    addOption("Webmaster-motor", "EAGLE 2.5", "2001");
    
    addOption("Webmaster-truck", "Select..", "", 1); //HEADER OPTION
    addOption("Webmaster-truck", "EAGLE SUMMIT", "");
    
    addOption("Webmaster-camper", "Select..", "", 1); //HEADER OPTION
    addOption("Webmaster-camper", "WRANGLER", "");
    Last edited by jscheuer1; 02-21-2009 at 04:41 PM. Reason: change icode formatting to code formatting

  2. #2
    Join Date
    Feb 2009
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    What do I need to do? Thank you very much

  3. #3
    Join Date
    Feb 2009
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Does anyone know what I need to do to add another drop down? Thank you

  4. #4
    Join Date
    Feb 2009
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Bump

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
  •