Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by Sugandhi on Oct 07, 2008 10:24
open dhtmlx forum
Displaying SubMenu

I use dhtmlXMenuBarObject for creating a vertical menu and i would like to create submenus for each of the main menu.

Can i use a div element object for creating submenus.

Example code :

<script>


</script>

<div id="menu_zone"></div>

<div id="popupSpanSubMenu" style="position:absolute; top:0px; left:0px;
visibility:hidden; z-index:999">
<div id="noBorder">
<table width="100%">
<tr>
<td><b>Span Actions 1</b></td>
</tr>
<tr>
<td>
<hr color="#a6a6a6">
</td>
</tr>
<tr>
<td><b>Span Actions 2</b></td>
</tr>
             <tr>
<td>
<hr color="#a6a6a6">
</td>
</tr>
</table>
</div>
</div>
Answer posted by Support on Oct 08, 2008 03:50
You need not any additional HTML tags, submenu can be created programmatically without any predefined HTML elements.
http://dhtmlx.com/docs/products/dhtmlxMenu/samples/initialization_loading/menu_building_script.html?un=1223464351000
...
  var subMenu = new dhtmlXMenuBarPanelObject(aMenuBar,item,false,120,true);  
...