Javascript dropdown dreamweaver - add child

Posted on 2008-11-18
Last Modified: 2013-12-25
I have a dropdown menu created in javascript (probably from fireworks). I am trying to edit the code manually to add child elements. Under an item called Sample, I would like to add 4 child items. Please see below. Please give some code ideas. Thanks!

<script language="JavaScript">
function mmLoadMenus() {
  if (window.mm_menu_1114083801_0) return;
  window.mm_menu_1114083801_0 = new Menu("root",537,16,"Verdana, Arial, Helvetica, sans-serif",10,"#212163","#FFFFFF","#F2F2E4","#B0AE5E","left","middle",3,0,1000,-5,7,true,false,true,0,true,true);

mm_menu_1114083801_0.addMenuItem("Sample","'SamplePolicy.pdf', '_blank');");
' ********************** insert here, 4 child items
   mm_menu_1114083801_0.addMenuItem("2008 Survey ","'2008.pdf', '_blank');");
  mm_menu_1114083801_0.addMenuItem("Tax Forms","location='Forms.asp'");

} // mmLoadMenus()
<script language="JavaScript" src="mm_menu.js"></script>
Question by:mackoner
    LVL 70

    Accepted Solution

    >>  I am trying to edit the code manually to add child elements.

    Can you not select the element in DW and edit it through the Behaviors panel?

    Author Closing Comment

    thank you, yes that's what I needed to do.

    Featured Post

    IT, Stop Being Called Into Every Meeting

    Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

    Join & Write a Comment

    Suggested Solutions

    Author Note: Since this E-E article was originally written, years ago, formal testing has come into common use in the world of PHP.  PHPUnit ( and similar technologies have enjoyed wide adoption, making it possib…
    In Part 1 ( we covered the hexagonal maze basics -- how the cells are represented in a JavaScript array and how the maze is displayed.  In this part, we'…
    This tutorial demonstrates how to identify and create boundary or building outlines in Google Maps. In this example, I outline the boundaries of an enclosed skatepark within a community park.  Login to your Google Account, then  Google for "Google M…
    The viewer will learn how to look for a specific file type in a local or remote server directory using PHP.

    745 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    15 Experts available now in Live!

    Get 1:1 Help Now