If I follow you correctly, then this is what I would do for something like navigation....
Using CSS or HTML or whatever you use to code your web site, your navigation will more than likely be in a code snippet such as this:
HTML Code:
<div id="nav">
<a href="page1.htm">Page 1</a>
<a href="page2.htm">Page 2</a>
<a href="page3.htm">Page 3</a>
<a href="page4.htm">Page 4</a>
</div>
If that navigation system is going to be on a lot of pages, and you expect to update it, then you could use a simple PHP code to get the job done
index.php
PHP Code:
<div id="nav"> <?php include("menu.php"); ?> </div>
menu.php
HTML Code:
<a href="page1.htm">Page 1</a>
<a href="page2.htm">Page 2</a>
<a href="page3.htm">Page 3</a>
<a href="page4.htm">Page 4</a>
Now, when you go to make an update, the only thing you need to modify is "menu.php" and it will reflect throughout all web pages, because all of your pages will call (or, 'include') menu.php.
I hope this helps.
|