• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 409
  • Last Modified:

Icon (arrow)not showing in JS Drop Down Menu

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;
      }
}

// -->
0
solsticeint
Asked:
solsticeint
  • 6
1 Solution
 
Michel PlungjanIT ExpertCommented:
not assets/arrows.gif? or  perhaps arrow.gif

It is impossible to tell without seeing the page - please post a url
0
 
solsticeintAuthor Commented:
Check ou the URL below:
http://www.snowarab.com/public_html/index.htm

THank you
0
 
Michel PlungjanIT ExpertCommented:
Error: missing ; before statement
Source File: http://www.snowarab.com/public_html/index.htm
Line: 46, Column: 6
Source Code:
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">

Error: syntax error
Source File: http://www.snowarab.com/public_html/index.htm
Line: 119
Source Code:
} // mmLoadMenus()
0
Get your problem seen by more experts

Be seen. Boost your question’s priority for more expert views and faster solutions

 
Michel PlungjanIT ExpertCommented:
1. remove

<title>new-sub-2006</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<!-- ImageReady Preload Script (new-sub-2006.psd) -->
<script type="text/javascript">
<!--
0
 
Michel PlungjanIT ExpertCommented:
Missing
function mmLoadMenus() {

The code is a mess
0
 
Michel PlungjanIT ExpertCommented:
And you have a loose
<img src="../Saved_pages/Saved_pages/Saved_pages/Flow%20Meter%20Models_files/arrows.gif">

instead of where it is supposed to come from
0
 
Michel PlungjanIT ExpertCommented:
Found it

in  http://www.snowarab.com/public_html/mm_menu.js

in
function writeMenus(container) {

Change

url(../Saved_pages/Flow Meter Models_files/+menu.bgImageUp+)

to whereever the images should be loaded from

url(../+menu.bgImageUp+)

for example
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Get expert help—faster!

Need expert help—fast? Use the Help Bell for personalized assistance getting answers to your important questions.

  • 6
Tackle projects and never again get stuck behind a technical roadblock.
Join Now