我正在为一位朋友(他在一家律师事务所工作)进行一些网站更改,他的网站左侧有一个导航栏。悬停时,这些显示一个子菜单。不幸的是,他试图取出其中一个子菜单项并失去了子菜单导航的所有功能。现在,它不显示子菜单,只显示一个错误。
这是之前的代码(在哪里工作):
<script language="JavaScript">
<!--
function mmLoadMenus() {
if (window.mm_menu_0327091831_0) return;
window.mm_menu_0327091831_0 = new Menu("root",225,30,"Optima, Verdana, Helvetica Neue, sans-serif",14,"#FFFFFF","#FFFFFF","#7E7D7D","#B3B3B3","left","middle",8,0,250,-5,7,true,false,true,0,true,true);
mm_menu_0327091831_0.addMenuItem("HARRY GRIFF, P.C.","location='harry-griff.html'");
mm_menu_0327091831_0.addMenuItem("DOUGLAS E. LARSON, P.C.","location='doug-larson.html'");
mm_menu_0327091831_0.addMenuItem("STEPHEN L. LAICHE, P.C.","location='stephen-laiche.html'");
mm_menu_0327091831_0.addMenuItem("BRAD R. WRIGHT, P.L.L.C.","location='brad-wright.html'");
mm_menu_0327091831_0.hideOnMouseOut=true;
mm_menu_0327091831_0.bgColor='#555555';
mm_menu_0327091831_0.menuBorder=1;
mm_menu_0327091831_0.menuLiteBgColor='#FFFFFF';
mm_menu_0327091831_0.menuBorderBgColor='#777777';
mm_menu_0327091831_0.writeMenus();
} // mmLoadMenus()
//-->
</script>
这是之后的代码:
<script language="JavaScript">
<!--
function mmLoadMenus() {
if (window.mm_menu_0327091831_0) return;
window.mm_menu_0327091831_0 = new Menu("root",225,30,"Optima, Verdana, Helvetica Neue, sans-serif",14,"#FFFFFF","#FFFFFF","#7E7D7D","#B3B3B3","left","middle",8,0,250,-5,7,true,false,true,0,true,true);
mm_menu_0327091831_0.addMenuItem("HARRY GRIFF, P.C.","location='harry-griff.html'");
mm_menu_0327091831_0.addMenuItem("DOUGLAS E. LARSON, P.C.","location='doug-larson.html'");
mm_menu_0327091831_0.addMenuItem("STEPHEN L. LAICHE, P.C.","location='stephen-laiche.html'");
mm_menu_0327091831_0.addMenuItem("BRAD R. WRIGHT, P.L.L.C.","location='brad-wright.html'");
mm_menu_0327091831_0.addMenuItem("BRAD R. WRIGHT, P.L.L.C.","location='rob-zentner.html'");
mm_menu_0327091831_0.hideOnMouseOut=true;
mm_menu_0327091831_0.bgColor='#555555';
mm_menu_0327091831_0.menuBorder=1;
mm_menu_0327091831_0.menuLiteBgColor='#FFFFFF';
mm_menu_0327091831_0.menuBorderBgColor='#777777';
mm_menu_0327091831_0.writeMenus();
} // mmLoadMenus()
//-->
</script>
继承人正在工作的网站:
这是不工作的网站:
我刚刚粘贴了已更改的 javascript,因为我认为这就是问题所在,但如果需要,我可以发布更多内容。
感谢大家的帮助!