| Sample: dhtmlxMenu | Context menu | dhtmlxMenu main page |

Test zone 1 Test zone 2 Test zone 3 | Test zone 4 Test zone 5 Test zone 6
Press right mouse button on one of test zones. Or open it at x: y:

    <script>
            //init context menu
            aMenu=new dhtmlXContextMenuObject('120',0,"../../codebase/imgs/");
            aMenu.menu.loadXML("_context.xml");
            aMenu.setContextMenuHandler(onButtonClick);

            //set context zones
            aMenu.setContextZone("alfa1",1);
            aMenu.setContextZone("alfa2",2);
            aMenu.setContextZone("alfa3",3);

            //init context menu
            bMenu=new dhtmlXContextMenuObject('120',0,"../../codebase/imgs/");
            bMenu.menu.loadXML("_context2.xml");
            bMenu.setContextMenuHandler(onButtonClick2);

            //set context zones
            bMenu.setContextZone("alfa4",1);
            bMenu.setContextZone("alfa5",2);
            bMenu.setContextZone("alfa6",3);</script>