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