This tutorial steps you through the process of adding a drop-down menu to a web page. You'll download some HTML,CSS, and javascript code and customize it for your specific purposes. The task is indicative of the kind of work a web designer does-- finding existing code and modifying it. 1. Go to http://www.dynamicdrive.com/dynamicindex1/droptabmenu.htm 2. Scroll down about 1/2 page and download the code dropdowntabs.zip. 3. Unzip the downloaded code into a sub-folder off your web directory if you're on Windows, right-click the zip file in the download window and select 'Open'. Then open 'My Computer', navigate to your W: directory, and copy the dropdowntabfiles folder and dropdowntabsdemo HTML file into your W: directory. If you're on Linux, drop it in your public_html directory. If you're developing an AppEngine application, drop it in the directory for your application. 4. Double-click the dropdowntabsdemo.HTML within the download to open it in a browser. It should show five examples of a tabbed menu. Play around with the menus to get a feel for how they work. 5. Copy the dropdowntabsdemo.html file into a file mymenu.html. This will be the file you change to customize a menu for your self. 6. Open mymenu.html in an editor. Remove all code pertaining specifically to examples 2-5 (we'll create a menu of the type in example 1). Be careful not to delete the last two lines in the file (the body and html end tags). Remove the Example 1 header and the 'Note that the CSS..." text. 7. Customize the menu so it has two top-level menu items, instead of five, with drop-down choices of your choosing. Do the following:
|