| 
      
   | 
    | 
  
       
          
                    How do you specify different number of sub menu columns for each menu heading in the dhtml menu bar?
       
      Return to Recent Questions
 
  
Q:
How do you specify different number of sub menu columns for each menu heading in the dhtml menu bar?  
 
When I put var smColumns = 5; it changed it for both my multicolumn headings. 
    
A:
You should use Individual Submenu Styles, for example:
  
var menuStyles = [ 
    ["smColumns=3"],// 0 style 
    ["smColumns=2"],// 1 style 
];
  
var menuItems = [ 
    ["Home","testlink.html", "", "", "", "", "0", "0", "", "", "", ], 
    ["Product Info","", "", "", "", "", "0", "", "", "", "", ], 
        ["|Features","testlink.html", "", "", "", "", "", "0", "", "", "", ],      // 0 style 
        ["|Installation","", "", "", "", "", "", "", "", "", "", ], 
            ["||Description of Files","testlink.html", "", "", "", "", "", "", "", "", "", ], 
            ["||How To Setup","testlink.html", "", "", "", "", "", "", "", "", "", ], 
        ["|Parameters Info","testlink.html", "", "", "", "", "", "", "", "", "", ], 
        ["|Dynamic Functions","testlink.html", "", "", "", "", "", "", "", "", "", ], 
        ["|Supported Browsers","", "", "", "", "", "", "", "", "", "", ], 
            ["||Windows OS","", "", "", "", "", "", "", "", "", "", ], 
            ["||Internet Explorer","", "", "", "", "", "", "", "", "", "", ], 
            ["||Firefox","", "", "", "", "", "", "", "", "", "", ], 
            ["||Mozilla","", "", "", "", "", "", "", "", "", "", ], 
            ["||Netscape","", "", "", "", "", "", "", "", "", "", ], 
            ["||Opera","", "", "", "", "", "", "", "", "", "", ], 
           
    ["Samples","", "", "", "", "", "0", "", "", "", "", ], 
        ["|Sample 1","testlink.html", "", "", "", "", "", "1", "", "", "", ],     // 1 style 
        ["|Sample 2 is Disabled","testlink.html", "", "", "", "_", "", "", "", "", "", ], 
        ["|Sample 3","testlink.html", "", "", "", "", "", "", "", "", "", ], 
        ["|Sample 4","testlink.html", "", "", "", "", "", "", "", "", "", ], 
        ["|Sample 5","testlink.html", "", "", "", "", "", "", "", "", "", ], 
        ["|Sample 6","testlink.html", "", "", "", "", "", "", "", "", "", ], 
        ["|Sample 7","testlink.html", "", "", "", "", "", "", "", "", "", ], 
        ["|Sample 8","testlink.html", "", "", "", "", "", "", "", "", "", ], 
        ["|Sample 9","testlink.html", "", "", "", "", "", "", "", "", "", ], 
    ["Purchase","http://deluxe-menu.com/order-purchase.html", "", "", "", "_blank", "0", "", "", "", "", ], 
    ["Contact Us","testlink.htm", "", "", "", "", "0", "", "", "", "", ], 
]; 
 
  
Return to Recent Questions
           Related: 
         
         - Aug 28, 2006 - Top menu in a 6x4 cell layout (effectively a rectangle)
 - Sep 02, 2006 - Can I show / hide the javascript floating menu .
 - Sep 02, 2006 - Little vertical spacers between menu items in the drop down menu.
 - Sep 04, 2006 - Set a menu item to pressed when a page is loaded.
 - Sep 05, 2006 - Can I say to deluxe-menu "use  wrapping"?
 - Sep 05, 2006 - Change cursor to a hand when over a menu link...
 - Sep 06, 2006 - The alighment of the dropdown menu is off to the right in  Firefox...
 - Sep 06, 2006 - Can't see my javascript vertical tree menu in FireFox.
 - Sep 06, 2006 - The first item of the html drop down menu stays highlighted.
 - Sep 11, 2006 - How can I hide my dropdown menu on print?
 - Sep 11, 2006 - If I use doctype the settings of the submenus in javascript dropdown menu get lost.
           
               
   |