Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by Garima on Oct 07, 2008 03:52
open dhtmlx forum
dhtmlmenu

hi,
i am using a menu.xml having folllwing code:
<menu maxItems="12" name="" mixedImages="yes">
    <MenuItem id="main_home" name="Home" panelWidth="130px" href="home.do"/>
    
</menu>

Here i want to use image text i mean currently i have used Home text under name attribute. But my requirement is using image text
so how do i use it.
Answer posted by Support on Oct 07, 2008 06:41
Image related to menu item can be set through src attribute

 <MenuItem id="main_home" name="Home" src="home.gif" panelWidth="130px" href="home.do"/>

http://dhtmlx.com/docs/products/docsExplorer/doc/dhtmlxxml/index.html#dhtmlx_xml

If you need to replace text by image, you can try to use 

 <MenuItem id="main_home" name="&lt;img src='Home.gif' &gt;" panelWidth="130px" href="home.do"/>