...

View Full Version : Multiple Pop-Up Menus Problem



molsonbubba
03-06-2005, 12:15 AM
Hi,

I have a template that has separate images as buttons for its navigation bar.
I used Fireworks 2004 to add pop-up menus to the buttons. The problem is that ONLY the first button works and anything below it, as in the code below, does not work. Can some1 please help me?

Thanks.

<script language="JavaScript1.2" src="images/fw_rates_images/mm_menu.js"></script>
<script language="JavaScript1.2">
<!--
function mmLoadMenusRates() {
if (window.mm_menu_0305103418_0) return;
window.mm_menu_0305103418_0 = new Menu("root",91,16,"Verdana, Arial, Helvetica, sans-serif",10,"#ffffff","#1771bf","#1771bf","#ffffff","center","middle",3,0,700,-5,7,true,false,true,0,true,true);
mm_menu_0305103418_0.addMenuItem("Ocean&nbsp;Import&nbsp;","location='/main/protected_rate_request_ocean_import.asp'");
mm_menu_0305103418_0.addMenuItem("Ocean&nbsp;Export&nbsp;","location='/main/protected_rate_request_ocean_export.asp'");
mm_menu_0305103418_0.addMenuItem("Air&nbsp;Import","location='/main/protected_rate_request_air_import.asp'");
mm_menu_0305103418_0.addMenuItem("Air&nbsp;Export","location='/main/protected_rate_request_air_export.asp'");
mm_menu_0305103418_0.addMenuItem("Transborder","location='/main/protected_rate_request_transborder.asp'");
mm_menu_0305103418_0.addMenuItem("Customs","location='/main/protected_rate_request_customs.asp'");
mm_menu_0305103418_0.bgImageUp="images/fw_rates_images/mmmenu1_91x16_up.gif";
mm_menu_0305103418_0.bgImageOver="images/fw_rates_images/mmmenu1_91x16_over.gif";
mm_menu_0305103418_0.hideOnMouseOut=true;
mm_menu_0305103418_0.bgColor='#555555';
mm_menu_0305103418_0.writeMenus();
} // mmLoadMenusRates()
//-->
</script>

<script language="JavaScript1.2" src="images/fw_ibooking_images/mm_menu.js"></script>
<script language="JavaScript1.2">
<!--
function mmLoadMenusiBooking() {
if (window.mm_menu_0305133834_0) return;
window.mm_menu_0305133834_0 = new Menu("root",111,16,"Verdana, Arial, Helvetica, sans-serif",10,"#ffffff","#1771bf","#1771bf","#ffffff","center","middle",3,0,700,-5,7,true,false,true,0,true,true);
mm_menu_0305133834_0.addMenuItem("Ocean&nbsp;Import&nbsp;LCL","location='/main/protected_iBookingOILCL.asp'");
mm_menu_0305133834_0.addMenuItem("Ocean&nbsp;Import&nbsp;FCL","location='/main/protected_iBookingOIFCL.asp'");
mm_menu_0305133834_0.addMenuItem("Ocean&nbsp;Export&nbsp;LCL","location='/main/protected_iBookingOE.asp'");
mm_menu_0305133834_0.addMenuItem("Ocean&nbsp;Export&nbsp;FCL","location='/main/protected_iBookingOEFCL.asp'");
mm_menu_0305133834_0.addMenuItem("Air&nbsp;Import","location='/main/protected_iBookingAI.asp'");
mm_menu_0305133834_0.addMenuItem("Air&nbsp;Export","location='/main/protected_iBookingAE.asp'");
mm_menu_0305133834_0.addMenuItem("Transborder","location='/main/protected_iBookingTB.asp'");
mm_menu_0305133834_0.bgImageUp="images/fw_ibooking_images/mmmenu1_111x16_up.gif";
mm_menu_0305133834_0.bgImageOver="images/fw_ibooking_images/mmmenu1_111x16_over.gif";
mm_menu_0305133834_0.hideOnMouseOut=true;
mm_menu_0305133834_0.bgColor='#555555';
mm_menu_0305133834_0.writeMenus();
} // mmLoadMenusiBooking()
//-->
</script>



<table width="100%" cellpadding="0" cellspacing="0" border="0">
<tr>
<td width="50%" style="background-image: url('images/bgl.gif'); background-repeat: repeat-y; background-position: top right;"><img src="images/spacer.gif"></td>
<td>
<table width="780" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td width="377" rowspan="2"><img src="images/index01.jpg" alt="" width="377" height="148"></td>
<td width="78"><a href="#"><img src="images/index02.jpg" alt="" width="78" height="54" border="0"></a></td>
<td width="89"><script language="JavaScript1.2">mmLoadMenusRates();</script><a href="#" onMouseOut="MM_startTimeout();" onMouseOver="MM_showMenu(window.mm_menu_0305103418_0,0,54,null,'index03');"><img name="index03" src="images/fw_rates_images/index03.jpg" width="89" height="54" border="0" alt=""></a></td>
<td width="79"><script language="JavaScript1.2">mmLoadMenusiBooking();</script><a href="#" onMouseOut="MM_startTimeout();" onMouseOver="MM_showMenu(window.mm_menu_0305133834_0,0,54,null,'index04');"><img name="index04" src="images/fw_ibooking_images/index04.jpg" width="79" height="54" border="0" alt=""></a></td>
<td width="69"><a href="#"><img src="images/index05.jpg" alt="" width="69" height="54" border="0"></a></td>
<td width="88"><a href="#"><img src="images/index06.jpg" alt="" width="88" height="54" border="0"></a></td>

codegoboom
03-07-2005, 05:08 AM
Does the "mm_menu" script not have usage instructions?

molsonbubba
03-07-2005, 11:35 PM
No intructions. It is generated by Fireworks 2004 MX. I could not find anythig in help on on line for this issue.

_Aerospace_Eng_
03-08-2005, 12:26 AM
do u have the fireworks file? can u put it in a zip file and attach it to one of your posts

molsonbubba
03-08-2005, 11:19 PM
there was no firewaroks files. do you mean the .js files?

molsonbubba
03-08-2005, 11:29 PM
i have them but can't upload. file size was too large, even compressed. they have a 50KB limit here. would .js files be of any help to you?

vicksslc
03-14-2005, 11:08 PM
/**
*A little documentation to make this thing work feel free to email 0000@lunawebs.com my attention: "shad" (replace 0000 with info) for further configuration.
*Menu("title",width,height,"font",fontsize,subfontcolor,subfonthovercolor,subbgcolor,subbghovercolor,subtextalign,notsure-valign?,subpaddingL,marginB,delaydissappearsub,???,???,???,border(T/F),vertical/horizontal,left padding,???,???);
*mm_menu_0416173531_0_1 "_0_1" indicates submenu of submenu whereas mm_menu_0416173531_0 indicates submenu of root. DO NOT change order of submenus or they will not work.
see for originals
URLs are relative to the root
*/
I however am looking to implement this without images and only CSS. The javascript however wants to read the image name. So I have been able to do it with a 1X1 pixel transparent. Now the drop down is a little too much to the right. Anyone know what line of code in the js file is to set the root menus x and y axis . I'm assuming I could push it a little left by -30 if I can find the dang line.

Shad



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum