Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by Aspi on Jul 11, 2008 02:22
open dhtmlx forum
dhtmlXmenu

Hi!

I have a question.I use dhtmlXmenu but, not working properly on ff3, the menus sliding wrong position.

here is my code:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Untitled Document</title>
</head>
<link rel="STYLESHEET" type="text/css" href="js/menu/dhtmlxmenu.css">
<script language="JavaScript" src="js/menu/dhtmlxprotobar.js"></script>
<script language="JavaScript" src="js/menu/dhtmlxmenubar.js"></script>
<script language="JavaScript" src="js/menu/dhtmlxcommon.js"></script>
<body>
<table width="600">
<tr>
<td>
<div id="menu_zone" style="width:600;background-color:#f5f5f5;border :1px solid Silver;"/>
</td>
</tr>
</table>
<script>
    
        function onButtonClick(itemId,itemValue)
        {
            
            if(itemId == 'close')
            {
             window.location = "logout.php"
            }
        };
                
        aMenuBar=new dhtmlXMenuBarObject(document.getElementById('menu_zone'),'100%',22,"<?php echo $_SESSION['Nev'].' '.$_SESSION['Rolegrp'];?>");
        aMenuBar.setOnClickHandler(onButtonClick);
        aMenuBar.setGfxPath("js/menu/imgs/");
        aMenuBar.loadXML("menu.xml");
        aMenuBar.showBar();
        
    </script>
</body>
</html>

thanks your answer.
Answer posted by Support on Jul 11, 2008 02:58
Add next line to menu initialization code
    menu.disableSmartPositioning(true);