troubleshooting Question

Icon (arrow)not showing in JS Drop Down Menu

Avatar of solsticeint
solsticeint asked on
JavaScript
7 Comments1 Solution434 ViewsLast Modified:
I am using the following drop down script for a menu and am having trouble getting the childMenuIcon="arrows.gif" to show.  Please look and let me know if you have any suggestions.  It was working and it is in the same directory as the script.

Thank you...

<!--
function mmLoadMenus() {
  if (window.mm_menu_1226102925_0) return;
                    window.mm_menu_1226102925_0_1 = new Menu("NEW&nbsp;Sage&nbsp;Prime",271,17,"Verdana, Arial, Helvetica, sans-serif",11,"#000000","#73833b","#f0ebe3","#dadfc8","left","middle",3,0,1000,-5,7,true,true,true,0,true,true);
    mm_menu_1226102925_0_1.addMenuItem("Integral&nbsp;Sage&nbsp;Prime&nbsp;Meter","location='../01-SIG_Integral_GP_insertion.htm'");
    mm_menu_1226102925_0_1.addMenuItem("Remote&nbsp;Sage&nbsp;Prime&nbsp;Meter","location='../02-SIG_Integral_GP_inline.htm'");
    mm_menu_1226102925_0_1.addMenuItem("Sage&nbsp;Prime&nbsp;Informational&nbsp;Flyer","location='../03-SRG_Remote_GP_insertion.htm'");
    mm_menu_1226102925_0_1.hideOnMouseOut=true;
     mm_menu_1226102925_0_1.bgColor='#c3bfb8';
     mm_menu_1226102925_0_1.menuBorder=1;
     mm_menu_1226102925_0_1.menuLiteBgColor='#f0ebe3';
     mm_menu_1226102925_0_1.menuBorderBgColor='#c3bfb8';
    window.mm_menu_1226102925_0_2 = new Menu("Product&nbsp;&&nbsp;Market-Specific&nbsp;Flyers",227,17,"Verdana, Arial, Helvetica, sans-serif",11,"#000000","#73833b","#f0ebe3","#dadfc8","left","middle",3,0,1000,-5,7,true,true,true,0,true,true);
    mm_menu_1226102925_0_2.addMenuItem("All&nbsp;Flyers","location='marketflyers.htm'");
    mm_menu_1226102925_0_2.addMenuItem("Monitor&nbsp;Natural&nbsp;Gas","location='flyer4.htm'");
    mm_menu_1226102925_0_2.addMenuItem("Monitor&nbsp;Compressed&nbsp;Air","location='flyer2.htm'");
    mm_menu_1226102925_0_2.addMenuItem("Wastewater&nbsp;Treatment","location='flyer3.htm'");
    mm_menu_1226102925_0_2.addMenuItem("Monitor&nbsp;Landfill&nbsp;Gas","location='flyer1.htm'");
     mm_menu_1226102925_0_2.addMenuItem("Sage&nbsp;Lite&nbsp;-&nbsp;Blind&nbsp;Meter&nbsp;(No&nbsp;Display)","location='flyer5.htm'");
    mm_menu_1226102925_0_2.addMenuItem("Remote&nbsp;Style&nbsp;Meter","location='flyer6.htm'");
     mm_menu_1226102925_0_2.hideOnMouseOut=true;
     mm_menu_1226102925_0_2.bgColor='#c3bfb8';
     mm_menu_1226102925_0_2.menuBorder=1;
     mm_menu_1226102925_0_2.menuLiteBgColor='#f0ebe3';
     mm_menu_1226102925_0_2.menuBorderBgColor='#c3bfb8';
    window.mm_menu_1226102925_0_3 = new Menu("CSI&nbsp;Specifications",187,17,"Verdana, Arial, Helvetica, sans-serif",11,"#000000","#73833b","#f0ebe3","#dadfc8","left","middle",3,0,1000,-5,7,true,true,true,0,true,true);
    mm_menu_1226102925_0_3.addMenuItem("SAGE-CSI-SRE-Insertion","location='CSI-SRE-Insertion.htm'");
    mm_menu_1226102925_0_3.addMenuItem("SAGE-CSI-SIE-Insertion","location='CSI-SIE-Insertion.htm'");
    mm_menu_1226102925_0_3.addMenuItem("SAGE-CSI-SRG-Insertion","location='CSI-SRG-Insertion.htm'");
     mm_menu_1226102925_0_3.hideOnMouseOut=true;
     mm_menu_1226102925_0_3.bgColor='#c3bfb8';
     mm_menu_1226102925_0_3.menuBorder=1;
     mm_menu_1226102925_0_3.menuLiteBgColor='#f0ebe3';
     mm_menu_1226102925_0_3.menuBorderBgColor='#c3bfb8';
    window.mm_menu_1226102925_0_4 = new Menu("Product&nbsp;Approvals",120,17,"Verdana, Arial, Helvetica, sans-serif",11,"#000000","#73833b","#f0ebe3","#dadfc8","left","middle",3,0,1000,-5,7,true,true,true,0,true,true);
    mm_menu_1226102925_0_4.addMenuItem("CSA&nbsp;Approvals","location='approvals/csa_approval.htm'");
     mm_menu_1226102925_0_4.hideOnMouseOut=true;
     mm_menu_1226102925_0_4.bgColor='#c3bfb8';
     mm_menu_1226102925_0_4.menuBorder=1;
     mm_menu_1226102925_0_4.menuLiteBgColor='#f0ebe3';
     mm_menu_1226102925_0_4.menuBorderBgColor='#c3bfb8';
  window.mm_menu_1226102925_0 = new Menu("root",230,17,"Verdana, Arial, Helvetica, sans-serif",11,"#000000","#73833b","#f0ebe3","#dadfc8","left","middle",3,0,1000,-5,7,true,true,true,0,true,true);
  mm_menu_1226102925_0.addMenuItem("New&nbsp;Sage&nbsp;Prime","location='prime.html'");
  mm_menu_1226102925_0.addMenuItem("Integral&nbsp;Models","location='Integral.html'");
  mm_menu_1226102925_0.addMenuItem("Remote&nbsp;Models","location='remote.html'");
  mm_menu_1226102925_0.addMenuItem("Download&nbsp;Product&nbsp;Brochure","location='brochure.htm'");
  mm_menu_1226102925_0.addMenuItem(mm_menu_1226102925_0_2,"location='marketflyers.htm'");
  mm_menu_1226102925_0.addMenuItem("Product&nbsp;Applications","location='broch_apps.htm'");
  mm_menu_1226102925_0.addMenuItem(mm_menu_1226102925_0_4);
   mm_menu_1226102925_0.hideOnMouseOut=true;
   mm_menu_1226102925_0.childMenuIcon="arrows.gif";
   mm_menu_1226102925_0.bgColor='#c3bfb8';
   mm_menu_1226102925_0.menuBorder=1;
   mm_menu_1226102925_0.menuLiteBgColor='#f0ebe3';
   mm_menu_1226102925_0.menuBorderBgColor='#c3bfb8';
window.mm_menu_1227115138_0 = new Menu("root",255,17,"Verdana, Arial, Helvetica, sans-serif",11,"#000000","#73833b","#f0ebe3","#dadfc8","left","middle",3,0,1000,-5,7,true,true,true,0,true,true);
mm_menu_1227115138_0.addMenuItem("Representatives&nbsp;-&nbsp;Domestic&nbsp;&&nbsp;Canada","location='reps_by-state.htm'");
  mm_menu_1227115138_0.addMenuItem("Distributors&nbsp;-&nbsp;International","location='reps_international.htm'");
  mm_menu_1227115138_0.addMenuItem("Sage","location='contact-us-sage.htm'");
   mm_menu_1227115138_0.hideOnMouseOut=true;
   mm_menu_1227115138_0.bgColor='#c3bfb8';
   mm_menu_1227115138_0.menuBorder=1;
   mm_menu_1227115138_0.menuLiteBgColor='#f0ebe3';
   mm_menu_1227115138_0.menuBorderBgColor='#c3bfb8';

mm_menu_1227115138_0.writeMenus();
} // mmLoadMenus()


function newImage(arg) {
      if (document.images) {
            rslt = new Image();
            rslt.src = arg;
            return rslt;
      }
}

function changeImages() {
      if (document.images && (preloadFlag == true)) {
            for (var i=0; i<changeImages.arguments.length; i+=2) {
                  document[changeImages.arguments[i]].src = changeImages.arguments[i+1];
            }
      }
}

var preloadFlag = false;
function preloadImages() {
      if (document.images) {
            header_02_over = newImage("assets/header_02-over.gif");
            header_03_over = newImage("assets/header_03-over.gif");
            header_04_over = newImage("assets/header_04-over.gif");
            header_05_over = newImage("assets/header_05-over.gif");
            header_06_over = newImage("assets/header_06-over.gif");
            header_07_over = newImage("assets/header_07-over.gif");
            header_08_over = newImage("assets/header_08-over.gif");
            header_09_over = newImage("assets/header_09-over.gif");
            header_10_over = newImage("assets/header_10-over.gif");
            header_11_over = newImage("assets/header_11-over.gif");
            preloadFlag = true;
      }
}

// -->
Join the community to see this answer!
Join our exclusive community to see this answer & millions of others.
Unlock 1 Answer and 7 Comments.
Join the Community
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 7 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros