• Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint
Share this Page URL
Help

Chapter 26. JavaScript Project: Creating... > Stage 2: Writing a Basic Menu

Stage 2: Writing a Basic Menu

Now that we have all our nodes created, the next step is to write the menu to the frame named tree_frame. As you'll see shortly, I created a function named write_menu() to perform the menu-writing chores. This function is called from the build_tree() function by adding the following statement:

function build_tree() {

    The build_tree() statements from Listing 26.1 go here

    // Write the navigation menu
    timeout_id = setTimeout("write_menu()", 50)

}


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


  
  • Creative Edge
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint