Writing Your Menu CellYou created the header portion of your output file. Now you are going to create your menu column. Ultimately this will be the ONLY place you will need to edit/add or delete menu items. Your changes will be displayed across your entire website.Step 1: Look at the code shown below and compare it with the code in your default.html file. Notice that we picked up where we last left off. We broke out the beginning of the second row of our table and included ONLY the first cell in our new function, which is our menu. Again, we cleaned up the code and changed line breaks to horizontal lines between the menu items. <hr> Step 2: Copy and paste all of the code below into your output_fns.php file. Leave a couple of spaces below the end of the last function you put there to make it easier to find your way around later. function display_menu(){ ?> <!-- THIS STARTS ROW 2 --> <TR> <!-- MENU --> <TD WIDTH="150" BGCOLOR="#009966" ALIGN="center" VALIGN="top"> <H3> <I>MENU</I> <HR> My Home Page <HR> About Me <HR> Links Index </H3> <!-- END MENU --> </TD> <?php }
|