?
Solved

Icon (arrow)not showing in JS Drop Down Menu

Posted on 2007-07-25
7
Medium Priority
?
404 Views
Last Modified: 2012-05-05
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
Comment
Question by:solsticeint
  • 6
7 Comments
 
LVL 75

Expert Comment

by:Michel Plungjan
ID: 19572531
not assets/arrows.gif? or  perhaps arrow.gif

It is impossible to tell without seeing the page - please post a url
0
 

Author Comment

by:solsticeint
ID: 19573210
Check ou the URL below:
http://www.snowarab.com/public_html/index.htm

THank you
0
 
LVL 75

Expert Comment

by:Michel Plungjan
ID: 19573461
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
VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

 
LVL 75

Expert Comment

by:Michel Plungjan
ID: 19573471
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
 
LVL 75

Expert Comment

by:Michel Plungjan
ID: 19573477
Missing
function mmLoadMenus() {

The code is a mess
0
 
LVL 75

Expert Comment

by:Michel Plungjan
ID: 19573487
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
 
LVL 75

Accepted Solution

by:
Michel Plungjan earned 2000 total points
ID: 19573541
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

Featured Post

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In my daily work (mainly using ASP.net), I need to write a lot of JavaScript code. One of the most repetitive tasks I do are the jQuery Ajax calls. You know: (CODE) I don't know if for you it's the same, but for me is soooo tedious to write the …
Today, the web development industry is booming, and many people consider it to be their vocation. The question you may be asking yourself is – how do I become a web developer?
The viewer will learn the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)
The viewer will learn the basics of jQuery including how to code hide show and toggles. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery…
Suggested Courses

839 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question