Ask a Question related to Macromedia Dynamic HTML, Design and Development.

  1. #1

    Default menu undefined???

    created drop down menu in dreamweaver - works on every page except index. Even
    works in the preview of dw but once i uploaad, not there. have recreated,
    copied from other pages, everything i can think of, even compared the same line
    of code to from one working page to the index page - exactly the same, and
    still no luck. when i publish i get: 'mm_menu_0404161422_0' is undefined. Below
    is the entire code for the drop down menu - HELP is URGENT. This is the last of
    the last of the changes to make this site work.

    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
    "http://www.w3.org/TR/html4/loose.dtd">
    <html>
    <head>
    <title>Caf&eacute; Milano &amp; Aficionados</title>
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
    <script language="JavaScript" type="text/JavaScript"
    >function mmLoadMenus() {
    if (window.mm_menu_0404161422_0) return;
    window.mm_menu_0304171702_0 = new Menu("root",100,16,"Georgia, Times New
    Roman, Times,
    serif",10,"#e8d47e","#ffffff","#550008","#14652d", "left","middle",2,0,1000,-5,7,
    true,true,true,0,false,false);

    window.mm_menu_0404161422_0 = new Menu("root",100,14,"Georgia, Times New
    Roman, Times,
    serif",10,"#e8d47e","#ffffff","#550008","#14652d", "left","middle",2,0,1000,-5,7,
    true,true,true,0,false,true);

    mm_menu_0404161422_0.addMenuItem("Brunch/Dessert","window.open('brunch-dessertme
    nu.htm', '_self');");
    mm_menu_0404161422_0.addMenuItem("Lunch","window.o pen('lunchmenu.htm',
    '_self');");
    mm_menu_0404161422_0.addMenuItem("Dinner","window. open('dinnermenu.htm',
    '_self');");
    mm_menu_0404161422_0.addMenuItem("Wine/Beer","window.open('winelist.htm',
    '_self');");
    mm_menu_0404161422_0.fontWeight="bold";
    mm_menu_0404161422_0.fontStyle="italic";
    mm_menu_0404161422_0.hideOnMouseOut=true;
    mm_menu_0404161422_0.bgColor='#555555';
    mm_menu_0404161422_0.menuBorder=1;
    mm_menu_0404161422_0.menuLiteBgColor='#FFFFFF';
    mm_menu_0404161422_0.menuBorderBgColor='#000000';

    mm_menu_0404161422_0.writeMenus();
    } // mmLoadMenus()<!--
    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=new Image; d.MM_p.src=a;}}
    }

    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.document; n=n.substring(0,p);}
    if(!(x=d)&&d.all) x=d.all; for (i=0;!x&&i<d.forms.length;i++) x=d.forms;
    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=x; if(!x.oSrc) x.oSrc=x.src;
    x.src=a;}
    }
    //-->
    </script>
    <style type="text/css">
    <!--
    .style1 {font-family: Arial, Helvetica, sans-serif;
    font-weight: bold;
    font-size: 9px;
    color: #666666;
    }
    body {
    background-color: #e8d37e;
    }
    .style2 {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 9px;
    }
    -->
    </style>
    <script language="JavaScript" src="mm_menu.js"></script>
    </head>

    <body
    onLoad="MM_preloadImages('images/home_button_2.gif','images/history_button_2.gif
    ','images/menus_button_2.gif','images/aficionados_button_2.gif','images/contact_
    button_2.gif')">
    <script language="JavaScript1.2">mmLoadMenus();</script>
    <div align="center">
    <table border="0" cellspacing="0" cellpadding="0">
    <tr>
    <td colspan="5"><img src="images/masthead.gif" width="700"
    height="119"></td>
    </tr>
    <tr>
    <td><a href="index.htm" onMouseOut="MM_swapImgRestore()"
    onMouseOver="MM_swapImage('Image3','','images/home_button_2.gif',1)"><img
    src="images/home_button_1.gif" name="Image3" width="122" height="25"
    border="0"></a></td>
    <td><a href="history.htm" onMouseOut="MM_swapImgRestore()"
    onMouseOver="MM_swapImage('Image4','','images/history_button_2.gif',1)"><img
    src="images/history_button_1.gif" name="Image4" width="145" height="25"
    border="0"></a></td>
    <td><a href="#" onMouseOut="MM_swapImgRestore();MM_startTimeout(); "
    onMouseOver="MM_swapImage('Image5','','images/menus_button_2.gif',1);MM_showMenu
    (window.mm_menu_0404161422_0,0,-16,null,'Image5')"><img
    src="images/menus_button.gif" name="Image5" width="141" height="25"
    border="0"></a></td>
    <td><a href="aficionados.htm" onMouseOut="MM_swapImgRestore()"
    onMouseOver="MM_swapImage('Image6','','images/aficionados_button_2.gif',1)"><img
    src="images/aficionados_button_1.gif" name="Image6" width="157" height="25"
    border="0"></a></td>
    <td><a href="contact.htm" onMouseOut="MM_swapImgRestore()"
    onMouseOver="MM_swapImage('Image7','','images/contact_button_2.gif',1)"><img
    src="images/contact_button_1.gif" name="Image7" width="135" height="25"
    border="0"></a></td>
    </tr>
    </table>:disgust;

    homagirl Guest

  2. Similar Questions and Discussions

    1. Help wiht converting this actionscript vertical menu to a horizontal menu?
      I've been fiddling around with this script and I think my ActionScript is a bit too rusty for accomplishing what I want to change. I've been...
    2. How do I build Drop Down menu using Menu magic with Database result
      Hi Every One. I resently purched Menu Magic Dropdown System. I would like to list my database content like news( few sentense with link ), Authers...
    3. ERROR: menu is undefined
      Hey everyone out there... I got a quick question. I just created my web page in fireworks and inserted it into dreamweaver. When I open my newly...
    4. ANNC: PVII Menu Magic II Multi-Level Menu Tutorial.
      Hello All, Menu Magic II by Project Seven is probably the coolest menu creation tool there is for Dreamweaver. While PVII chose to provide a...
    5. What is an undefined offset? An undefined index?
      I just switched error_reporting to ALL so I could debug my site. I got a huge page full of errors. One of the most common was that in my arrays I'm...
  3. #2

    Default Re: menu undefined???

    <sigh> You have been snookered into investing far more time in these awful
    menus than they are worth. On behalf of everyone here, I apologize.

    Can you link me to this page, please?

    --
    Murray --- ICQ 71997575
    Adobe Community Expert
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    [url]http://www.dreamweavermx-templates.com[/url] - Template Triage!
    [url]http://www.projectseven.com/go[/url] - DW FAQs, Tutorials & Resources
    [url]http://www.dwfaq.com[/url] - DW FAQs, Tutorials & Resources
    [url]http://www.macromedia.com/support/search/[/url] - Macromedia (MM) Technotes
    ==================


    "homagirl" <webforumsuser@macromedia.com> wrote in message
    news:e163d4$qg7$1@forums.macromedia.com...
    > created drop down menu in dreamweaver - works on every page except index.
    > Even
    > works in the preview of dw but once i uploaad, not there. have recreated,
    > copied from other pages, everything i can think of, even compared the same
    > line
    > of code to from one working page to the index page - exactly the same, and
    > still no luck. when i publish i get: 'mm_menu_0404161422_0' is undefined.
    > Below
    > is the entire code for the drop down menu - HELP is URGENT. This is the
    > last of
    > the last of the changes to make this site work.
    >
    > <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
    > "http://www.w3.org/TR/html4/loose.dtd">
    > <html>
    > <head>
    > <title>Caf&eacute; Milano &amp; Aficionados</title>
    > <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
    > <script language="JavaScript" type="text/JavaScript"
    > >function mmLoadMenus() {
    > if (window.mm_menu_0404161422_0) return;
    > window.mm_menu_0304171702_0 = new Menu("root",100,16,"Georgia, Times New
    > Roman, Times,
    > serif",10,"#e8d47e","#ffffff","#550008","#14652d", "left","middle",2,0,1000,-5,7,
    > true,true,true,0,false,false);
    >
    > window.mm_menu_0404161422_0 = new Menu("root",100,14,"Georgia, Times
    > New
    > Roman, Times,
    > serif",10,"#e8d47e","#ffffff","#550008","#14652d", "left","middle",2,0,1000,-5,7,
    > true,true,true,0,false,true);
    >
    > mm_menu_0404161422_0.addMenuItem("Brunch/Dessert","window.open('brunch-dessertme
    > nu.htm', '_self');");
    > mm_menu_0404161422_0.addMenuItem("Lunch","window.o pen('lunchmenu.htm',
    > '_self');");
    > mm_menu_0404161422_0.addMenuItem("Dinner","window. open('dinnermenu.htm',
    > '_self');");
    >
    > mm_menu_0404161422_0.addMenuItem("Wine/Beer","window.open('winelist.htm',
    > '_self');");
    > mm_menu_0404161422_0.fontWeight="bold";
    > mm_menu_0404161422_0.fontStyle="italic";
    > mm_menu_0404161422_0.hideOnMouseOut=true;
    > mm_menu_0404161422_0.bgColor='#555555';
    > mm_menu_0404161422_0.menuBorder=1;
    > mm_menu_0404161422_0.menuLiteBgColor='#FFFFFF';
    > mm_menu_0404161422_0.menuBorderBgColor='#000000';
    >
    > mm_menu_0404161422_0.writeMenus();
    > } // mmLoadMenus()<!--
    > 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=new Image; d.MM_p.src=a;}}
    > }
    >
    > 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.document; n=n.substring(0,p);}
    > if(!(x=d)&&d.all) x=d.all; for (i=0;!x&&i<d.forms.length;i++) x=d.forms;
    > 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=x; if(!x.oSrc)
    > x.oSrc=x.src;
    > x.src=a;}
    > }
    > //-->
    > </script>
    > <style type="text/css">
    > <!--
    > .style1 {font-family: Arial, Helvetica, sans-serif;
    > font-weight: bold;
    > font-size: 9px;
    > color: #666666;
    > }
    > body {
    > background-color: #e8d37e;
    > }
    > .style2 {
    > font-family: Arial, Helvetica, sans-serif;
    > font-size: 9px;
    > }
    > -->
    > </style>
    > <script language="JavaScript" src="mm_menu.js"></script>
    > </head>
    >
    > <body
    > onLoad="MM_preloadImages('images/home_button_2.gif','images/history_button_2.gif
    > ','images/menus_button_2.gif','images/aficionados_button_2.gif','images/contact_
    > button_2.gif')">
    > <script language="JavaScript1.2">mmLoadMenus();</script>
    > <div align="center">
    > <table border="0" cellspacing="0" cellpadding="0">
    > <tr>
    > <td colspan="5"><img src="images/masthead.gif" width="700"
    > height="119"></td>
    > </tr>
    > <tr>
    > <td><a href="index.htm" onMouseOut="MM_swapImgRestore()"
    > onMouseOver="MM_swapImage('Image3','','images/home_button_2.gif',1)"><img
    > src="images/home_button_1.gif" name="Image3" width="122" height="25"
    > border="0"></a></td>
    > <td><a href="history.htm" onMouseOut="MM_swapImgRestore()"
    > onMouseOver="MM_swapImage('Image4','','images/history_button_2.gif',1)"><img
    > src="images/history_button_1.gif" name="Image4" width="145" height="25"
    > border="0"></a></td>
    > <td><a href="#" onMouseOut="MM_swapImgRestore();MM_startTimeout(); "
    > onMouseOver="MM_swapImage('Image5','','images/menus_button_2.gif',1);MM_showMenu
    > (window.mm_menu_0404161422_0,0,-16,null,'Image5')"><img
    > src="images/menus_button.gif" name="Image5" width="141" height="25"
    > border="0"></a></td>
    > <td><a href="aficionados.htm" onMouseOut="MM_swapImgRestore()"
    > onMouseOver="MM_swapImage('Image6','','images/aficionados_button_2.gif',1)"><img
    > src="images/aficionados_button_1.gif" name="Image6" width="157"
    > height="25"
    > border="0"></a></td>
    > <td><a href="contact.htm" onMouseOut="MM_swapImgRestore()"
    > onMouseOver="MM_swapImage('Image7','','images/contact_button_2.gif',1)"><img
    > src="images/contact_button_1.gif" name="Image7" width="135" height="25"
    > border="0"></a></td>
    > </tr>
    > </table>:disgust;
    >

    Murray *ACE* Guest

  4. #3

    Default Re: menu undefined???

    [url]http://www.cafemilanohouma.com/testsite/[/url]

    that is the link of my index page. it's a test site for the url ahead of
    "testsite." the drop down menu actually is supposed to drop UP on the home page
    under the word "menus" if you click on the other pages, it actually drops down.
    i wasn't sure which one the clienet wanted.

    homagirl Guest

  5. #4

    Default Re: menu undefined???

    This file has not been uploaded to that folder -

    [url]http://www.cafemilanohouma.com/testsite/mm_menu.js[/url]

    Please read these so that you will understand how nasty this menu gorilla
    is -

    [url]http://apptools.com/rants/jsmenu.php[/url]
    [url]http://apptools.com/rants/menus.php[/url]


    --
    Murray --- ICQ 71997575
    Adobe Community Expert
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    [url]http://www.dreamweavermx-templates.com[/url] - Template Triage!
    [url]http://www.projectseven.com/go[/url] - DW FAQs, Tutorials & Resources
    [url]http://www.dwfaq.com[/url] - DW FAQs, Tutorials & Resources
    [url]http://www.macromedia.com/support/search/[/url] - Macromedia (MM) Technotes
    ==================


    "homagirl" <webforumsuser@macromedia.com> wrote in message
    news:e16749$28o$1@forums.macromedia.com...
    > [url]http://www.cafemilanohouma.com/testsite/[/url]
    >
    > that is the link of my index page. it's a test site for the url ahead of
    > "testsite." the drop down menu actually is supposed to drop UP on the home
    > page
    > under the word "menus" if you click on the other pages, it actually drops
    > down.
    > i wasn't sure which one the clienet wanted.
    >

    Murray *ACE* Guest

  6. #5

    Default Re: menu undefined???

    thanks a bunch! I saw that file but didn't realize i had to upload it. i
    thought that the everything to make it work was embedded in the code. funny
    that it worked on all the other pages, though??? oh well, thanks anyway!:D

    homagirl Guest

  7. #6

    Default Re: menu undefined???

    Please reconsider your use of them, though. They will be a continuous thorn
    in your side. You know about the 'no-spidering' right?

    --
    Murray --- ICQ 71997575
    Adobe Community Expert
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    [url]http://www.dreamweavermx-templates.com[/url] - Template Triage!
    [url]http://www.projectseven.com/go[/url] - DW FAQs, Tutorials & Resources
    [url]http://www.dwfaq.com[/url] - DW FAQs, Tutorials & Resources
    [url]http://www.macromedia.com/support/search/[/url] - Macromedia (MM) Technotes
    ==================


    "homagirl" <webforumsuser@macromedia.com> wrote in message
    news:e16b8o$7lu$1@forums.macromedia.com...
    > thanks a bunch! I saw that file but didn't realize i had to upload it. i
    > thought that the everything to make it work was embedded in the code.
    > funny
    > that it worked on all the other pages, though??? oh well, thanks anyway!:D
    >

    Murray *ACE* Guest

Posting Permissions

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

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139