lilbadger25 Posted February 7, 2008 Share Posted February 7, 2008 Another inherited project...it was set up to use mm_menu.js for horizontal drop downs. I updated the script file to reflect the sub menu titles and links and it was working in both IE and Firefox splendidly. Yesterday, while updating some other parts of the page, I realized that the menu wasn't set to center so I changed the format of the table and changed a couple of sub menu links in the script (those are the only two things I changed, with relation to the drop down menu). Obvioulsy I forgot something, or moved something, but I can't find it. I have searched for this issue online and thought maybe either moving the files (mm_script.js and the scripts.js that houses the menu information) to the root, didn't work. I wrote an absolute path referencing the location of these two files, didn't work. It must be something I either typed, deleted, or moved. Can anyone see the issue? menu code <tr> <td><img src="images/menuLeft.jpg" width="42" height="58" border="0" /></td> <td><a href="internetSolutions.php" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('internetSolutions','','images/menuInternetSolutionsOvr.jpg',1)"><img src="images/menuInternetSolutions.jpg" name="internetSolutions" width="175" height="58" id="internetSolutions" border="0" onmouseover="MM_showMenu(window.mm_menu_0830164620_0,8,17,null,'internetSolutions')" onmouseout="MM_startTimeout();"></a></td> <td><a href="graphicDesign.php" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('graphicDesign','','images/menuGraphicDesignOvr.jpg',1)"><img src="images/menuGraphicDesign.jpg" name="graphicDesign" width="121" height="58" id="graphicDesign" border="0" onmouseover="MM_showMenu(window.mm_menu_0830164621_0,8,17,null,'graphicDesign')" onmouseout="MM_startTimeout();" /></a></td> <td><a href="multimediaDesign.php" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('multimediaDesign','','images/menuMultimediaDesignOvr.jpg',1)"><img src="images/menuMultimediaDesign.jpg" name="multimediaDesign" width="140" height="58" id="multimediaDesign" border="0" onmouseover="MM_showMenu(window.mm_menu_0830164622_0,8,17,null,'multimediaDesign')" onmouseout="MM_startTimeout();" /></a></td> <td><a href="marketingStrategies.php" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('marketingStrategies','','images/menuMarketingStrategiesOvr.jpg',1)"><img src="images/menuMarketingStrategies.jpg" name="marketingStrategies" width="154" height="58" id="marketingStrategies" border="0" onmouseover="MM_showMenu(window.mm_menu_0830164623_0,8,17,null,'marketingStrategies')" onmouseout="MM_startTimeout();" /></a></td><td><a href="portfolio.php" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('portfolio','','images/menuPortfolioOvr.jpg',1)"><img src="images/menuPortfolio.jpg" alt="[ Portfolio ]" name="portfolio" width="158" height="58" border="0" id="portfolio" /></a></td> </tr> menus section of scripts.js <!---rollover menus script function mmLoadMenus() { if (window.mm_menu_0830164620_0) return; window.mm_menu_0830164620_0 = new Menu("root",155,17,"Verdana, Arial, Helvetica, sans-serif",11,"#FFFFFF","#000000","#7E8B9E","#d5d9e4","left","middle",3,0,1000,-5,7,true,false,true,0,true,true); mm_menu_0830164620_0.addMenuItem("Dynamic Webpages","window.open('dynamicDesigns.php', '_self');"); mm_menu_0830164620_0.addMenuItem("E Commerce Applications","window.open('eComApps.php', '_self');"); mm_menu_0830164620_0.addMenuItem("Custom Programming","window.open('customProgramming.php', '_self');"); mm_menu_0830164620_0.addMenuItem("Flash Sites","window.open('flashSites.php', '_self');"); mm_menu_0830164620_0.hideOnMouseOut=true; mm_menu_0830164620_0.bgColor='#555555'; mm_menu_0830164620_0.menuBorder=1; mm_menu_0830164620_0.menuLiteBgColor='#FFFFFF'; mm_menu_0830164620_0.menuBorderBgColor='#777777'; if (window.mm_menu_0830164621_0) return; window.mm_menu_0830164621_0 = new Menu("root",142,17,"Verdana, Arial, Helvetica, sans-serif",11,"#FFFFFF","#000000","#7E8B9E","#d5d9e4","left","middle",3,0,1000,-5,7,true,false,true,0,true,true); mm_menu_0830164621_0.addMenuItem("Logo Design","window.open('logoDesign.php', '_self');"); mm_menu_0830164621_0.addMenuItem("Flyer Design","window.open('flyerDesign.php', '_self');"); mm_menu_0830164621_0.addMenuItem("Brochure Design","window.open('brochureDesign.php', '_self');"); mm_menu_0830164621_0.addMenuItem("Signage","window.open('signage.php', '_self');"); mm_menu_0830164621_0.addMenuItem("Trade Show Booths","window.open('tradeShowBooths.php', '_self');"); mm_menu_0830164621_0.addMenuItem("Direct Mail","window.open('directMail.php', '_self');"); mm_menu_0830164621_0.addMenuItem("Print Ads","window.open('printAds.php', '_self');"); mm_menu_0830164621_0.hideOnMouseOut=true; mm_menu_0830164621_0.bgColor='#555555'; mm_menu_0830164621_0.menuBorder=1; mm_menu_0830164621_0.menuLiteBgColor='#FFFFFF'; mm_menu_0830164621_0.menuBorderBgColor='#777777'; if (window.mm_menu_0830164622_0) return; window.mm_menu_0830164622_0 = new Menu("root",142,17,"Verdana, Arial, Helvetica, sans-serif",11,"#FFFFFF","#000000","#7E8B9E","#d5d9e4","left","middle",3,0,1000,-5,7,true,false,true,0,true,true); mm_menu_0830164622_0.addMenuItem("Flash Presentations","window.open('flashPresentations.php', '_self');"); mm_menu_0830164622_0.addMenuItem("Kiosk Design","window.open('kioskDesign.php', '_self');"); mm_menu_0830164622_0.addMenuItem("Virtual Tour","window.open('virtualTour.php', '_self');"); mm_menu_0830164622_0.hideOnMouseOut=true; mm_menu_0830164622_0.bgColor='#555555'; mm_menu_0830164622_0.menuBorder=1; mm_menu_0830164622_0.menuLiteBgColor='#FFFFFF'; mm_menu_0830164622_0.menuBorderBgColor='#777777'; if (window.mm_menu_0830164623_0) return; window.mm_menu_0830164623_0 = new Menu("root",142,17,"Verdana, Arial, Helvetica, sans-serif",11,"#FFFFFF","#000000","#7E8B9E","#d5d9e4","left","middle",3,0,1000,-5,7,true,false,true,0,true,true); mm_menu_0830164623_0.addMenuItem("Consultations","window.open('consultations.php', '_self');"); mm_menu_0830164623_0.addMenuItem("Copy Writing Services","window.open('copyWritingServices.php', '_self');"); mm_menu_0830164623_0.hideOnMouseOut=true; mm_menu_0830164623_0.bgColor='#555555'; mm_menu_0830164623_0.menuBorder=1; mm_menu_0830164623_0.menuLiteBgColor='#FFFFFF'; mm_menu_0830164623_0.menuBorderBgColor='#777777'; mm_menu_0830164620_0.writeMenus(); } --> If it's not a problem in the above snippets, I can post the version of mm_menu.js that I'm using. I am not posting it now because it's ridiculously large and I didn't change it at all (and like I said, it was working fine before yesterday). If it needs to be posted to solve this issue, let me know. Quote Link to comment Share on other sites More sharing options...
lilbadger25 Posted February 7, 2008 Author Share Posted February 7, 2008 ETA: The graphic rollovers are working fine but the drop downs aren't showing in IE (but show in Firefox). I don't know that I clarified what "not working" was. Sorry. Quote Link to comment Share on other sites More sharing options...
mainewoods Posted February 8, 2008 Share Posted February 8, 2008 just exactly which one of the submenu links did you change? I would guess there is a mistake in the use of single and double quotes because a single mistake there kills the whole script. Quote Link to comment Share on other sites More sharing options...
lilbadger25 Posted February 8, 2008 Author Share Posted February 8, 2008 Thanks for the response, mainewoods... I changed the urls in mm_menu_0830164620_0.addMenuItem("Dynamic Webpages","window.open('dynamicDesigns.php', '_self');"); mm_menu_0830164620_0.addMenuItem("E Commerce Applications","window.open('eComApps.php', '_self');"); mm_menu_0830164620_0.addMenuItem("Custom Programming","window.open('customProgramming.php', '_self');"); mm_menu_0830164620_0.addMenuItem("Flash Sites","window.open('flashSites.php', '_self');"); and I removed one of the menu items just above mm_menu_0830164623_0.addMenuItem("Consultations","window.open('consultations.php', '_self');"); mm_menu_0830164623_0.addMenuItem("Copy Writing Services","window.open('copyWritingServices.php', '_self');"); Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.