// Create the embeded main menu, note that the PHP property names all match the name of the menu property // position="relative"; is important to include the menu inside a table cell. $mmMenu=new mMenu(); $mmMenu->style="menuStyle"; $mmMenu->alwaysvisible="true"; $mmMenu->orientation="horizontal"; $mmMenu->position="relative"; // Add some menu items - This can be all on one line using the addItemFromText method. // However, you can add single item properties using the following code: /* $mmItem = new mItem(); $mmItem->addItemElement("text", "Single Item Test"); $mmItem->addItemElement("url", "singleitems.php"); $mmItem->addItemElement("title", "Test of single item"); $mmItem->addItemElement("oncolor", "ff0000"); $mmMenu->addItemFromItem($mmItem); */ $mmMenu->addItemFromText("status=Back To Home Page;text=Home;url=http://www.milonic.com/;"); $mmMenu->addItemFromText("showmenu=Samples;text=Menu Samples;"); $mmMenu->addItemFromText("showmenu=Milonic;text=Milonic;"); $mmMenu->addItemFromText("showmenu=Partners;text=Partners;"); $mmMenu->addItemFromText("showmenu=Links;text=Links;"); $mmMenu->addItemFromText("showmenu=MyMilonic;text=My Milonic;"); $mmMenu->createMenu("Main Menu"); drawMenus(); ?> |