我正在爲朋友(他在一家合法公司工作)的某些網站更改工作,他的網站左側有一個導航欄。懸停時,這些顯示一個子菜單。不幸的是,他試圖取出其中一個子菜單項,並失去了子菜單導航的所有功能。現在,不是顯示子菜單,而是顯示一個錯誤。javascript導航問題消失
下面的代碼之前(如果它的工作):
<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>
繼承人的站點工作:
first site (this is working, but is the page that needed a few updates
繼承人該網站不工作:
second site (this is not working, hover over the attorney profiles button)
我剛剛粘貼已更改的JavaScript,因爲這是我認爲問題是,但如果需要,我可以發佈更多。
感謝您的幫助!
只需在Google上花費幾分鐘後即可進行猜測,因此YMMV:'mmLoadMenus'函數及其代碼由Dreamweaver自動生成。我的預感是你的朋友手編輯發佈的腳本。可能還有一些其他自動生成的代碼在文件中的其他位置,仍然期待原始數量的菜單項。如果是這種情況(再次猜測這裏),可能最好的解決方法是回到Dreamweaver並從drap/drop gui界面編輯菜單項並讓它重新生成腳本。 – Bryan
如果您發佈的是錯誤消息,並且該網站的公開鏈接可能也會對您有用。 – Bryan
我沒有看到有人被帶出,我看到有一個是通過副本添加的(第二個「布拉德」)。就個人而言,我只是得到一個新的菜單方法。 –