Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Help removing items from old mm_menu script.

Status
Not open for further replies.

justsomegcluelessuy

Programmer
Mar 7, 2011
3
US
Greetings,
I have inherited this site with my new job and they are wanting to remove the sub items from the drop down menu. I don't know much about JavaScript so I was hoping to get some assistance. They want to remove "Formula" and "Outer Limits" from the first child of the first menu item "Sales > New Boats". Client needs this ASAP so there is no time to go through the approval process on another menu. Any assistance would be appreciated.

Here is the code for the page:

<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<title>Company Page</title>
<script language="JavaScript">
<!--
function MM_findObj(n, d) { //v4.01
var p,i,x; if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[n];
for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers.document);
if(!x && d.getElementById) x=d.getElementById(n); return x;
}
function MM_swapImage() { //v3.0
var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
if ((x=MM_findObj(a))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}
function MM_swapImgRestore() { //v3.0
var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a)&&x.oSrc;i++) x.src=x.oSrc;
}

function MM_preloadImages() { //v3.0
var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
if (a.indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a;}}
}

function mmLoadMenus() {
if (window.mm_menu_1017140433_0) return;
window.mm_menu_1017140433_0_1_1 = new Menu("Formula",145,20,"Verdana, Arial, Helvetica, sans-serif",13,"#ffffff","#000066","#ed1c24","#ffffff","left","middle",2,0,100,-1,7,true,true,true,3,true,false);
mm_menu_1017140433_0_1_1.addMenuItem("Sun&nbsp;Sport/Bowrider","location='/sales/formula-ssbowrider.htm'");
mm_menu_1017140433_0_1_1.addMenuItem("Super&nbsp;Sport","location='/sales/formula-supersport.htm'");
mm_menu_1017140433_0_1_1.addMenuItem("Cruiser","location='/sales/formula-cruiser.htm'");
mm_menu_1017140433_0_1_1.addMenuItem("FAS&reg;TECH","location='/sales/formula-fastech.htm'");
mm_menu_1017140433_0_1_1.addMenuItem("Yacht","location='/sales/formula-yacht.htm'");
mm_menu_1017140433_0_1_1.addMenuItem("Current Inventory","location='/store/categoriesInfo.asp?cID=56'");
mm_menu_1017140433_0_1_1.hideOnMouseOut=true;
mm_menu_1017140433_0_1_1.menuBorder=1;
mm_menu_1017140433_0_1_1.menuItemBorder=1;
mm_menu_1017140433_0_1_1.menuLiteBgColor='#d9ddec';
mm_menu_1017140433_0_1_1.menuBorderBgColor='#496999';
mm_menu_1017140433_0_1_1.bgColor='#496999';
window.mm_menu_1017140433_0_1_2 = new Menu("Outerlimits",145,20,"Verdana, Arial, Helvetica, sans-serif",13,"#ffffff","#000066","#ed1c24","#ffffff","left","middle",2,0,100,-1,7,true,true,true,3,true,false);
mm_menu_1017140433_0_1_2.addMenuItem("Current Inventory","location='/store/categoriesInfo.asp?cID=57'");
mm_menu_1017140433_0_1_2.hideOnMouseOut=true;
mm_menu_1017140433_0_1_2.menuBorder=1;
mm_menu_1017140433_0_1_2.menuItemBorder=1;
mm_menu_1017140433_0_1_2.menuLiteBgColor='#d9ddec';
mm_menu_1017140433_0_1_2.menuBorderBgColor='#496999';
mm_menu_1017140433_0_1_2.bgColor='#496999';
window.mm_menu_1017140433_0_1 = new Menu("New&nbsp;Boats",92,20,"Verdana, Arial, Helvetica, sans-serif",13,"#ffffff","#000066","#ed1c24","#ffffff","left","middle",2,0,100,-1,0,true,true,true,3,true,false);
mm_menu_1017140433_0_1.addMenuItem(mm_menu_1017140433_0_1_1,"location='/sales/formula.htm'");
mm_menu_1017140433_0_1.addMenuItem(mm_menu_1017140433_0_1_2,"location='/sales/outerlimits.htm'");
mm_menu_1017140433_0_1.hideOnMouseOut=true;
mm_menu_1017140433_0_1.childMenuIcon="images/arrows.gif";
mm_menu_1017140433_0_1.menuBorder=1;
mm_menu_1017140433_0_1.menuItemBorder=1;
mm_menu_1017140433_0_1.menuLiteBgColor='#d9ddec';
mm_menu_1017140433_0_1.menuBorderBgColor='#496999';
mm_menu_1017140433_0_1.bgColor='#496999';
window.mm_menu_1017140433_0_2 = new Menu("Pre-owned Boats",130,20,"Verdana, Arial, Helvetica, sans-serif",13,"#ffffff","#000066","#ed1c24","#ffffff","left","middle",2,0,100,-1,0,true,true,true,3,true,false);
mm_menu_1017140433_0_2.addMenuItem("Current Inventory","location='/store/categoriesInfo.asp?cID=58'");
mm_menu_1017140433_0_2.hideOnMouseOut=true;
mm_menu_1017140433_0_2.childMenuIcon="images/arrows.gif";
mm_menu_1017140433_0_2.menuBorder=1;
mm_menu_1017140433_0_2.menuItemBorder=1;
mm_menu_1017140433_0_2.menuLiteBgColor='#d9ddec';
mm_menu_1017140433_0_2.menuBorderBgColor='#496999';
mm_menu_1017140433_0_2.bgColor='#496999';

window.mm_menu_1017140433_0 = new Menu("root",134,20,"Verdana, Arial, Helvetica, sans-serif",13,"#ffffff","#000066","#ed1c24","#ffffff","left","middle",2,0,1000,-1,0,true,true,true,3,true,false);
mm_menu_1017140433_0.addMenuItem(mm_menu_1017140433_0_1,"location='/sales/index.htm'");
mm_menu_1017140433_0.addMenuItem(mm_menu_1017140433_0_2,"location='/sales/preowned.htm'");
mm_menu_1017140433_0.hideOnMouseOut=true;
mm_menu_1017140433_0.childMenuIcon="images/arrows.gif";
mm_menu_1017140433_0.menuBorder=1;
mm_menu_1017140433_0.menuItemBorder=1;
mm_menu_1017140433_0.menuLiteBgColor='#d9ddec';
mm_menu_1017140433_0.menuBorderBgColor='#496999';
mm_menu_1017140433_0.bgColor='#496999';

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

//-->
</script>
<script language="JavaScript1.2" type="text/javascript" src="mm_menu.js"></script>
<style type="text/css">
<!--
.hometext { font-family: Arial, Helvetica, sans-serif;
font-size: 13px;
font-weight: bold;
color: #FFC515;
margin-right: 30px;
margin-left: 10px;
line-height: 18px;
}
body {
margin-left: 0px;
margin-top: 0px;
margin-right: 0px;
margin-bottom: 0px;
background-image: url(images/home-bkgrnd.gif);
background-repeat: repeat-x;
background-color: #FFCC33;
}
-->
</style>
</head>

<body onLoad="MM_preloadImages('images/nav1_f2.gif','images/nav2_f2.gif','images/nav3_f2.gif','images/nav4_f2.gif','images/nav5_f2.gif','images/nav6_f2.gif')">
<script language="JavaScript1.2">mmLoadMenus();</script>
<table width="920" border="0" cellpadding="0" cellspacing="0">
<tr>
<td height="32" colspan="2" valign="top"><div align="center">
<APPLET CODE="ScrollIt.class" name="Applet1" WIDTH="780" HEIGHT="28" ARCHIVE="ScrollIt.jar" id=Applet1 VIEWASTEXT>
<PARAM NAME="bgcolor" VALUE="ffcc33">
<PARAM NAME="scrollbgcolor" VALUE="ffffff">
<PARAM NAME="fontcolor" VALUE="0000ff">
<PARAM NAME="hovercolor" VALUE="ff0000">
<PARAM NAME="linkcolor" VALUE="993399">
<PARAM NAME="brakes" VALUE="12">
<PARAM NAME="fontface" VALUE="Arial">
<PARAM NAME="fontstyle" VALUE="plain">
<PARAM NAME="fontbold" VALUE="on">
<PARAM NAME="fontsize" VALUE="12">
<PARAM NAME="textfile" VALUE="trentonmarine.txt">
<PARAM NAME="text" VALUE="off">
<PARAM NAME="target" VALUE="_self">
</APPLET>
<img src="images/spacer.gif" width="1" height="30"></div></td></tr>
<tr>
<td height="143" colspan="2"><img name="homelogostop" src="images/home-logos-top.gif" width="800" height="143" border="0" alt=""></td>
</tr>
<tr height="23">
<td height="23" colspan="2" valign="bottom"> <table align="left" border="0" cellpadding="0" cellspacing="0" width="800" height="23">
<tr>
<td><img name="index2_r3_c1" src="images/index2_r3_c1.gif" width="35" height="23" border="0" alt=""></td>
<td><div STYLE="z-index:1; position:relative"><a href="../sales/index.htm" onMouseOut="MM_swapImgRestore();MM_startTimeout();" onMouseOver="MM_showMenu(window.mm_menu_1017140433_0,0,23,null,'nav1');MM_swapImage('nav1','','images/nav1_f2.gif',1)"><img name="nav1" src="images/nav1.gif" width="57" height="23" border="0" alt=""></a></div></td>
<td><img name="index2_r3_c3" src="images/index2_r3_c3.gif" width="52" height="23" border="0" alt=""></td>
<td><a href="service/index.htm" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('nav2','','images/nav2_f2.gif',1);"><img name="nav2" src="images/nav2.gif" width="75" height="23" border="0" alt=""></a></td>
<td><img name="index2_r3_c5" src="images/index2_r3_c5.gif" width="51" height="23" border="0" alt=""></td>
<td><a href="marina/index.htm" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('nav3','','images/nav3_f2.gif',1);"><img name="nav3" src="images/nav3.gif" width="69" height="23" border="0" alt=""></a></td>
<td><img name="index2_r3_c7" src="images/index2_r3_c7.gif" width="44" height="23" border="0" alt=""></td>
<td><a href="parts/index.htm" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('nav4','','images/nav4_f2.gif',1);"><img name="nav4" src="images/nav4.gif" width="59" height="23" border="0" alt=""></a></td>
<td><img name="index2_r3_c9" src="images/index2_r3_c9.gif" width="45" height="23" border="0" alt=""></td>
<td><a href="news/index.htm" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('nav5','','images/nav5_f2.gif',1);"><img name="nav5" src="images/nav5.gif" width="130" height="23" border="0" alt=""></a></td>
<td><img name="index2_r3_c11" src="images/index2_r3_c11.gif" width="43" height="23" border="0" alt=""></td>
<td><a href="Contact/index.htm" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('nav6','','images/nav6_f2.gif',1);"><img name="nav6" src="images/nav6.gif" width="108" height="23" border="0" alt=""></a></td>
<td><img name="index2_r3_c13" src="images/index2_r3_c13.gif" width="32" height="23" border="0" alt=""></td>
</tr>
</table></div></td>
</tr>
<tr>
<td width="383"><div STYLE="z-index:0; position:relative">
<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase=" width="383" height="367" title="animation">
<param name="movie" value="images/animation-home2.swf">
<param name="quality" value="high">
<PARAM NAME="WMODE" VALUE="transparent">
<embed src="images/animation-home2.swf" quality="high" WMODE="transparent" pluginspage=" type="application/x-shockwave-flash" width="383" height="367"></embed>
</object>
</div></td><td width="800" background="images/home-txt-bkgrnd.gif"><p class="hometext">EXPERIENCE THE DIFFERENCE! xxxx is a full service sales, service, parts, storage and marina facility located on the xxxx in historic xxxx. Established in 1986 by a veteran of the retail marine business, we are renowned as the premiere boating center in the xxxx region. Please consider us for all your boating needs, including: </p>
<p class="hometext">• New and pre-owned power boats • Flexible financing • Comprehensive service and storage • Boating gear, parts and equipment</p>
<p class="hometext">Decades of experience, a friendly atmosphere and the highest quality products in the industry make xxxx the only choice for your boating investment. We look forward to serving you. We encourage you to come visit our 65,000+ square foot waterfront facility and marina and experience the difference at xxxx.</p></td> </tr>
</table></td>
</tr>
<tr>
<td colspan="2">&nbsp;</td>
</tr>
</table>
</body>
</html>
 
use at your own risk
Code:
function mmLoadMenus() {
  if (window.mm_menu_1017140433_0) return;
    window.mm_menu_1017140433_0_1 = new Menu("New&nbsp;Boats",92,20,"Verdana, Arial, Helvetica, sans-serif",13,"#ffffff","#000066","#ed1c24","#ffffff","left","middle",2,0,100,-1,0,true,true,true,3,true,false);
     mm_menu_1017140433_0_1.hideOnMouseOut=true;
     mm_menu_1017140433_0_1.childMenuIcon="images/arrows.gif";
     mm_menu_1017140433_0_1.menuBorder=1;
     mm_menu_1017140433_0_1.menuItemBorder=1;
     mm_menu_1017140433_0_1.menuLiteBgColor='#d9ddec';
     mm_menu_1017140433_0_1.menuBorderBgColor='#496999';
     mm_menu_1017140433_0_1.bgColor='#496999';
window.mm_menu_1017140433_0_2 = new Menu("Pre-owned Boats",130,20,"Verdana, Arial, Helvetica, sans-serif",13,"#ffffff","#000066","#ed1c24","#ffffff","left","middle",2,0,100,-1,0,true,true,true,3,true,false);
 mm_menu_1017140433_0_2.addMenuItem("Current Inventory","location='/store/categoriesInfo.asp?cID=58'");
mm_menu_1017140433_0_2.hideOnMouseOut=true;
     mm_menu_1017140433_0_2.childMenuIcon="images/arrows.gif";
     mm_menu_1017140433_0_2.menuBorder=1;
     mm_menu_1017140433_0_2.menuItemBorder=1;
     mm_menu_1017140433_0_2.menuLiteBgColor='#d9ddec';
     mm_menu_1017140433_0_2.menuBorderBgColor='#496999';
     mm_menu_1017140433_0_2.bgColor='#496999';
   
  window.mm_menu_1017140433_0 = new Menu("root",134,20,"Verdana, Arial, Helvetica, sans-serif",13,"#ffffff","#000066","#ed1c24","#ffffff","left","middle",2,0,1000,-1,0,true,true,true,3,true,false);
  mm_menu_1017140433_0.addMenuItem(mm_menu_1017140433_0_1,"location='/sales/index.htm'");
  mm_menu_1017140433_0.addMenuItem(mm_menu_1017140433_0_2,"location='/sales/preowned.htm'");
   mm_menu_1017140433_0.hideOnMouseOut=true;
   mm_menu_1017140433_0.childMenuIcon="images/arrows.gif";
   mm_menu_1017140433_0.menuBorder=1;
   mm_menu_1017140433_0.menuItemBorder=1;
   mm_menu_1017140433_0.menuLiteBgColor='#d9ddec';
   mm_menu_1017140433_0.menuBorderBgColor='#496999';
   mm_menu_1017140433_0.bgColor='#496999';

 mm_menu_1017140433_0.writeMenus();
}  // mmLoadMenus()
 
Hi, thanks for your prompt response. That did remove the menu items however, when I Rollover the menu it still has a little fly-out menu that is only one pixel high and the parent menu still has an arrow icon. Is there any way to remove these?
Thanks so much!!!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top