if (mtDropDown.isSupported()) { var ms = new mtDropDownSet(mtDropDown.direction.down, 0, 0, mtDropDown.reference.bottomLeft); var menu2 = ms.addMenu(document.getElementById("mainmenu2")); menu2.addItem("企业为什么要建网站?", "/userlist/admin/text-28.html",""); menu2.addItem("互联网与企业", "/userlist/admin/text-23.html",""); menu2.addItem("域名相关知识介绍", "/userlist/admin/text-24.html",""); menu2.addItem("电子商务ABC", "/userlist/admin/text-25.html",""); menu2.addItem("网站维护", "/userlist/admin/text-26.html",""); menu2.addItem("你问我答", "/userlist/admin/text-27.html",""); var menu3 = ms.addMenu(document.getElementById("mainmenu3")); menu3.addItem("公司历程", "/userlist/admin/text-14.html",""); menu3.addItem("公司文化", "/userlist/admin/text-16.html",""); mtDropDown.renderAll(); } //初始菜单 window.onload = init;