Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by Garima on Sep 17, 2008 01:11
open dhtmlx forum
Onmouseover event handling

Hi-

I am using the dhtmlxMenu and would like to be able to open children of the toplevel menu
upon mouseover. It appears that you have to click on the toplevel menu first to get the mouseover to
work using the following below line:
menu.enableWindowOpenMode(false);

But the only problem is when you first roll over a menu, it kind of shrinks in size a little. Is there a way to prevent this?

The code is :


<HTML>
<HEAD>
<link rel="STYLESHEET" type="text/css" href="Menu/menu_alter.css">
    <script language="JavaScript" src="Menu/protobar.js"></script>
    <script language="JavaScript" src="Menu/menubar.js"></script>
    <script language="JavaScript" src="Menu/common.js"></script>
</HEAD>

<BODY>

    <table>
        <tr>
            <td>
                <div id="altermenu" style="width:937;"/>
            </td>
        </tr>
        <tr>
        <td>
            
        </td>
        </tr>
    </table>
    <script>
        
        var menuBar=new dhtmlXMenuBarObject(document.getElementById('altermenu'),'100%',22,"");
        menuBar.setGfxPath("Menu/imgs/");
        menuBar.loadXML("Menu/_menu.xml");
        menuBar.disableSmartPositioning(true);
        menuBar.enableWindowOpenMode(false);
        menuBar.showBar();
        
    </script>
</BODY>
</HTML>

And i am using dhtmlxmenu_alter.css as mention in the site.

Please help me as soon as possible.

Thanks
Garima

Answer posted by Support on Sep 18, 2008 10:44
The issue was not reconstructed locally.Please, see attached sample
Attachments (1)