this should be in the php area or asp just for future refrence but will show you here anyway using php (i'm not familiar with other server side langauges)
if your layout looked like this...
HTML Code:
<html>
<body>
<div id="header"> <img scr="banner.jpg"></div>
<div id="nav"> <a href="http://www.google.com"> google </a> <br>
<a href="http://www.google.com"> yahoo </a> <br>
<a href="http://www.dogpile.com">dogpile </a>
</div>
<div id="content">
here is where all of your content is going
</div>
</body>
</html>
you would want to take out the bit for the nave and save it as a different file you can keep the html extention but I normally use .inc for include so we'll say you cut and pasted
<div id="nav"> <a href="http://www.google.com"> google </a> <br>
<a href="http://www.google.com"> yahoo </a> <br>
<a href="http://www.dogpile.com">dogpile </a>
</div>
and saved it as "nav.inc"
when you rewrite the page here save it as index.php and it should look as follows...
PHP Code:
<html> <body> <div id="header"> <img scr="banner.jpg"></div> <? include ('./nav.inc'); ?> <div id="content"> here is where all of your content is going </div> </body> </html>
so if you wanted to change any of the nav links globally across your site just change nav.inc
hope this helps
|