Ronald B Stamets Website Design and Development Corner of logo

Ronald B Stamets, Web Site Design and Development Services

top content bar
Home Website design Domains & Hosting E-Commerce Additional Services Contact Us About Us Web Design Tutorials FAQ Pay Bill Site Map Request Estimate

Writing Your Menu Cell

You 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
}

Previous Page Return To Main Index Next Page

Have a Question?

home
 
Website Design
 
Domains Hosting
 
ECommerce
 
addl services
   
Contact Us
 
About Us
 
Tutorials
 
Design FAQ
 
Pay Bill
 
site map