Results 1 to 5 of 5
  1. #1

    Fireworks menu problem

    Hello, I created a pretty simple dropdown menu with fireworks, the menu its self work fine however upon loading the menu in internet explorer I get the following error:

    line: 10
    char: 3
    Error: "menu" is undefined
    code 0
    Any ideas on hwo to correct the problem I have tried re-exporting the menu but the problem still persists.

    -Chris

  2. #2
    Join Date
    Oct 2002
    Location
    State of Disbelief
    Posts
    22,948
    Is the code produced by Fireworks completely intact on the page you made? Sounds like maybe you left out some of the code in the head?

  3. #3
    Join Date
    Nov 2003
    Location
    Online
    Posts
    1,216
    We can oonly help you when you past full code. But it look you skip some thing in header tag.

  4. #4
    Woops forgot about this and still in need of help, the menu works fine outside of dreamweaver but when it is imported and previewed the rror comes up, heres the full code:

    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
    <html>
    <head>
    <title>Welcome to the Lacantina 44 Website</title>
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
    <script language="JavaScript1.2">
    <!--
    function mmLoadMenus() {
    if (window.mm_menu_0502212640_0) return;
    window.mm_menu_0502212640_0 = new Menu("root",143,20,"Georgia, Times New Roman, Times, serif",14,"#000000","#000000","#dedf9c","#efebde","left","middle",3,0,1000,-5,7,true,true,true,0,false,false);
    mm_menu_0502212640_0.addMenuItem("Home","window.open('frame1.htm', 'mainFrame');");
    mm_menu_0502212640_0.hideOnMouseOut=true;
    mm_menu_0502212640_0.menuBorder=1;
    mm_menu_0502212640_0.menuLiteBgColor='#ffffff';
    mm_menu_0502212640_0.menuBorderBgColor='#555555';
    mm_menu_0502212640_0.bgColor='#555555';
    window.mm_menu_0502212044_0 = new Menu("root",143,20,"Georgia, Times New Roman, Times, serif",14,"#000000","#000000","#dedf9c","#efebde","left","middle",3,0,1000,-5,7,true,true,true,0,false,false);
    mm_menu_0502212044_0.addMenuItem("Childrens Menu","window.open('pages/child_menu.htm', 'mainFrame');");
    mm_menu_0502212044_0.addMenuItem("A La Carte Menu","window.open('pages/carte_menu.htm', 'mainFrame');");
    mm_menu_0502212044_0.addMenuItem("Beat The Clock Menu","window.open('pages/clock_menu.htm', 'mainFrame');");
    mm_menu_0502212044_0.hideOnMouseOut=true;
    mm_menu_0502212044_0.menuBorder=1;
    mm_menu_0502212044_0.menuLiteBgColor='#ffffff';
    mm_menu_0502212044_0.menuBorderBgColor='#555555';
    mm_menu_0502212044_0.bgColor='#555555';
    window.mm_menu_0502211747_0 = new Menu("root",143,20,"Georgia, Times New Roman, Times, serif",14,"#000000","#000000","#dedf9c","#efebde","left","middle",3,0,1000,-5,7,true,true,true,0,false,false);
    mm_menu_0502211747_0.addMenuItem("Booking","window.open('pages/booking.htm', 'mainFrame');");
    mm_menu_0502211747_0.hideOnMouseOut=true;
    mm_menu_0502211747_0.menuBorder=1;
    mm_menu_0502211747_0.menuLiteBgColor='#ffffff';
    mm_menu_0502211747_0.menuBorderBgColor='#555555';
    mm_menu_0502211747_0.bgColor='#555555';
    window.mm_menu_0502211550_0 = new Menu("root",143,20,"Georgia, Times New Roman, Times, serif",14,"#000000","#000000","#dedf9c","#efebde","left","middle",3,0,1000,-5,7,true,true,true,0,false,false);
    mm_menu_0502211550_0.addMenuItem("Location","window.open('pages/location.htm', 'mainFrame');");
    mm_menu_0502211550_0.addMenuItem("Contact","window.open('pages/contact.htm', 'mainFrame');");
    mm_menu_0502211550_0.addMenuItem("Jobs","window.open('pages/jobs.htm', 'mainFrame');");
    mm_menu_0502211550_0.hideOnMouseOut=true;
    mm_menu_0502211550_0.menuBorder=1;
    mm_menu_0502211550_0.menuLiteBgColor='#ffffff';
    mm_menu_0502211550_0.menuBorderBgColor='#555555';
    mm_menu_0502211550_0.bgColor='#555555';
    window.mm_menu_0502210645_0 = new Menu("root",143,20,"Georgia, Times New Roman, Times, serif",14,"#000000","#000000","#dedf9c","#efebde","left","middle",3,0,1000,-5,7,true,true,true,0,false,false);
    mm_menu_0502210645_0.addMenuItem("Staff","window.open('pages/staff.htm', 'mainFrame');");
    mm_menu_0502210645_0.addMenuItem("Restaurant","window.open('pages/restaurant.htm', 'mainFrame');");
    mm_menu_0502210645_0.addMenuItem("Gallery","window.open('pages/gallery.htm', 'mainFrame');");
    mm_menu_0502210645_0.hideOnMouseOut=true;
    mm_menu_0502210645_0.menuBorder=1;
    mm_menu_0502210645_0.menuLiteBgColor='#ffffff';
    mm_menu_0502210645_0.menuBorderBgColor='#555555';
    mm_menu_0502210645_0.bgColor='#555555';

    mm_menu_0502210645_0.writeMenus();
    } // mmLoadMenus()
    <!--




    <!--




    <!--




    <!--




    <!--




    <!--




    <!--




    <!--




    <!--




    <!--




    <!--




    <!--




    <!--




    <!--




    <!--



    mmLoadMenus();
    //-->
    //-->
    //-->
    //-->
    //-->
    //-->
    //-->
    //-->
    //-->
    //-->
    //-->
    //-->
    //-->
    //-->
    //-->

    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[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
    }

    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[i][n];
    for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
    if(!x && d.getElementById) x=d.getElementById(n); return x;
    }

    function MM_nbGroup(event, grpName) { //v6.0
    var i,img,nbArr,args=MM_nbGroup.arguments;
    if (event == "init" && args.length > 2) {
    if ((img = MM_findObj(args[2])) != null && !img.MM_init) {
    img.MM_init = true; img.MM_up = args[3]; img.MM_dn = img.src;
    if ((nbArr = document[grpName]) == null) nbArr = document[grpName] = new Array();
    nbArr[nbArr.length] = img;
    for (i=4; i < args.length-1; i+=2) if ((img = MM_findObj(args[i])) != null) {
    if (!img.MM_up) img.MM_up = img.src;
    img.src = img.MM_dn = args[i+1];
    nbArr[nbArr.length] = img;
    } }
    } else if (event == "over") {
    document.MM_nbOver = nbArr = new Array();
    for (i=1; i < args.length-1; i+=3) if ((img = MM_findObj(args[i])) != null) {
    if (!img.MM_up) img.MM_up = img.src;
    img.src = (img.MM_dn && args[i+2]) ? args[i+2] : ((args[i+1])? args[i+1] : img.MM_up);
    nbArr[nbArr.length] = img;
    }
    } else if (event == "out" ) {
    for (i=0; i < document.MM_nbOver.length; i++) {
    img = document.MM_nbOver[i]; img.src = (img.MM_dn) ? img.MM_dn : img.MM_up; }
    } else if (event == "down") {
    nbArr = document[grpName];
    if (nbArr)
    for (i=0; i < nbArr.length; i++) { img=nbArr[i]; img.src = img.MM_up; img.MM_dn = 0; }
    document[grpName] = nbArr = new Array();
    for (i=2; i < args.length-1; i+=2) if ((img = MM_findObj(args[i])) != null) {
    if (!img.MM_up) img.MM_up = img.src;
    img.src = img.MM_dn = (args[i+1])? args[i+1] : img.MM_up;
    nbArr[nbArr.length] = img;
    } }
    }
    //-->
    </script>
    <script language="JavaScript1.2" src="topnav/mm_menu.js"></script>
    </head>

    <body bgcolor="#dddd99" onLoad="MM_preloadImages('topnav/topnav_r2_c1_f3.gif','topnav/topnav_r2_c1_f2.gif','topnav/topnav_r2_c2_f3.gif','topnav/topnav_r2_c2_f2.gif','topnav/topnav_r2_c4_f3.gif','topnav/topnav_r2_c4_f2.gif','topnav/topnav_r2_c6_f3.gif','topnav/topnav_r2_c6_f2.gif','topnav/topnav_r2_c8_f3.gif','topnav/topnav_r2_c8_f2.gif')">
    <script language="JavaScript1.2">mmLoadMenus();</script>
    <table border="0" cellpadding="0" cellspacing="0" width="707">
    <!-- fwtable fwsrc="topnav.png" fwbase="topnav.gif" fwstyle="Dreamweaver" fwdocid = "742308039" fwnested="0" -->
    <tr>
    <td><img src="topnav/spacer.gif" width="80" height="1" border="0" alt=""></td>
    <td><img src="topnav/spacer.gif" width="17" height="1" border="0" alt=""></td>
    <td><img src="topnav/spacer.gif" width="63" height="1" border="0" alt=""></td>
    <td><img src="topnav/spacer.gif" width="17" height="1" border="0" alt=""></td>
    <td><img src="topnav/spacer.gif" width="63" height="1" border="0" alt=""></td>
    <td><img src="topnav/spacer.gif" width="17" height="1" border="0" alt=""></td>
    <td><img src="topnav/spacer.gif" width="63" height="1" border="0" alt=""></td>
    <td><img src="topnav/spacer.gif" width="17" height="1" border="0" alt=""></td>
    <td><img src="topnav/spacer.gif" width="80" height="1" border="0" alt=""></td>
    <td><img src="topnav/spacer.gif" width="290" height="1" border="0" alt=""></td>
    <td><img src="topnav/spacer.gif" width="1" height="1" border="0" alt=""></td>
    </tr>
    <tr>
    <td colspan="10"><img name="topnav_r1_c1" src="topnav/topnav_r1_c1.gif" width="707" height="95" border="0" alt=""></td>
    <td><img src="topnav/spacer.gif" width="1" height="95" border="0" alt=""></td>
    </tr>
    <tr>
    <td><a href="javascript:;" target="mainFrame" onMouseOut="MM_nbGroup('out');MM_startTimeout();" onMouseOver="MM_showMenu(window.mm_menu_0502212640_0,10,17,null,'topnav_r2_c1');MM_nbGroup('over','topnav_r2_c1','topnav/topnav_r2_c1_f2.gif','topnav/topnav_r2_c1_f3.gif',1);" onClick="MM_nbGroup('down','navbar1','topnav_r2_c1','topnav/topnav_r2_c1_f3.gif',1);"><img name="topnav_r2_c1" src="topnav/topnav_r2_c1.gif" width="80" height="17" border="0" alt=""></a></td>
    <td colspan="2"><a href="javascript:;" target="_top" onClick="MM_nbGroup('down','navbar1','topnav_r2_c2','topnav/topnav_r2_c2_f3.gif',1);" onMouseOver="MM_showMenu(window.mm_menu_0502212044_0,10,17,null,'topnav_r2_c2');MM_nbGroup('over','topnav_r2_c2','topnav/topnav_r2_c2_f2.gif','topnav/topnav_r2_c2_f3.gif',1);" onMouseOut="MM_nbGroup('out');MM_startTimeout();"><img name="topnav_r2_c2" src="topnav/topnav_r2_c2.gif" width="80" height="17" border="0" alt=""></a></td>
    <td colspan="2"><a href="javascript:;" target="_top" onClick="MM_nbGroup('down','navbar1','topnav_r2_c4','topnav/topnav_r2_c4_f3.gif',1);" onMouseOver="MM_showMenu(window.mm_menu_0502211747_0,10,17,null,'topnav_r2_c4');MM_nbGroup('over','topnav_r2_c4','topnav/topnav_r2_c4_f2.gif','topnav/topnav_r2_c4_f3.gif',1);" onMouseOut="MM_nbGroup('out');MM_startTimeout();"><img name="topnav_r2_c4" src="topnav/topnav_r2_c4.gif" width="80" height="17" border="0" alt=""></a></td>
    <td colspan="2"><a href="javascript:;" target="_top" onClick="MM_nbGroup('down','navbar1','topnav_r2_c6','topnav/topnav_r2_c6_f3.gif',1);" onMouseOver="MM_showMenu(window.mm_menu_0502211550_0,10,17,null,'topnav_r2_c6');MM_nbGroup('over','topnav_r2_c6','topnav/topnav_r2_c6_f2.gif','topnav/topnav_r2_c6_f3.gif',1);" onMouseOut="MM_nbGroup('out');MM_startTimeout();"><img name="topnav_r2_c6" src="topnav/topnav_r2_c6.gif" width="80" height="17" border="0" alt=""></a></td>
    <td colspan="2"><a href="javascript:;" target="_top" onClick="MM_nbGroup('down','navbar1','topnav_r2_c8','topnav/topnav_r2_c8_f3.gif',1);" onMouseOver="MM_showMenu(window.mm_menu_0502210645_0,10,19,null,'topnav_r2_c8');MM_nbGroup('over','topnav_r2_c8','topnav/topnav_r2_c8_f2.gif','topnav/topnav_r2_c8_f3.gif',1);" onMouseOut="MM_nbGroup('out');MM_startTimeout();"><img name="topnav_r2_c8" src="topnav/topnav_r2_c8.gif" width="97" height="17" border="0" alt=""></a></td>
    <td rowspan="2"><img name="topnav_r2_c10" src="topnav/topnav_r2_c10.gif" width="290" height="85" border="0" alt=""></td>
    <td><img src="topnav/spacer.gif" width="1" height="17" border="0" alt=""></td>
    </tr>
    <tr>
    <td colspan="9"><img name="topnav_r3_c1" src="topnav/topnav_r3_c1.gif" width="417" height="68" border="0" alt=""></td>
    <td><img src="topnav/spacer.gif" width="1" height="68" border="0" alt=""></td>
    </tr>
    </table>
    </body>
    </html>

  5. #5
    Join Date
    Jun 2003
    Location
    Bay Area
    Posts
    218
    macromedia stuff is so smurt.
    -- My software isn't buggy; it develops random features --

Posting Permissions

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