Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 7 of 7
  1. #1
    New to the CF scene
    Join Date
    Mar 2005
    Posts
    7
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Question Multiple Pop-Up Menus Problem

    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>

  • #2
    Regular Coder
    Join Date
    Aug 2004
    Location
    codegoboom@yahoo.com
    Posts
    999
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Does the "mm_menu" script not have usage instructions?
    *this message will self destruct in n-seconds*

  • #3
    New to the CF scene
    Join Date
    Mar 2005
    Posts
    7
    Thanks
    0
    Thanked 0 Times in 0 Posts
    No intructions. It is generated by Fireworks 2004 MX. I could not find anythig in help on on line for this issue.

  • #4
    Supreme Master coder! _Aerospace_Eng_'s Avatar
    Join Date
    Dec 2004
    Location
    In a place far, far away...
    Posts
    19,291
    Thanks
    2
    Thanked 1,043 Times in 1,019 Posts
    do u have the fireworks file? can u put it in a zip file and attach it to one of your posts

  • #5
    New to the CF scene
    Join Date
    Mar 2005
    Posts
    7
    Thanks
    0
    Thanked 0 Times in 0 Posts
    there was no firewaroks files. do you mean the .js files?

  • #6
    New to the CF scene
    Join Date
    Mar 2005
    Posts
    7
    Thanks
    0
    Thanked 0 Times in 0 Posts
    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?

  • #7
    New to the CF scene
    Join Date
    Mar 2005
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Here's some documentation I recently wrote

    /**
    *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
    Last edited by vicksslc; 03-14-2005 at 11:10 PM. Reason: my email can be scanned


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •