Hey gang, I've been wondering how I can get this done. Say I have five pages: page1.html page2.html page3.html page4.html page5.html And on each of those pages, I want to have 3 links on a nav-bar. Say one to the index.html, one to videos.html, and one to pictures.html. If I want to add another link, I don't want to have to go through all five pages and edit each one. Is there a way I can have a links.html page, and then put some code into my pages so when I want to add a new link, I can just put it into links.html and all my pages will update? Thanks a bunch.
You would have to use a scripting language such as php, asp, or jsp to do that. You would create a central file and have all other files read from the central navgation file using the scripting language.
You would have to learn the whole scripting langauge. Or try this. Create a file and name it nav.php. Now put all your links in that file. Now change the extension of all your other html files to php. And add this code to them where you would like the links to appear <? $path = "Put the path to the nav file you created here." include $path; ?> The only thing is that now you will need a server like xampp to run your website. You can download the serve for free from http://www.apachefriends.org/en/xampp-windows.html.
Even if you are not interested in learning any language, still you can use dreamweaver or textpad to Find & Replace in a specific folder and add the link in every page.
I learn fast, and I was able to use the include command to fix my navigation, advertisements, and even my sponser links. Thankyou very much guys ^-^
Or simpler just use, <? include $file location;?> Also a quick tip, instead of using <? echo $variable; ?> use <?=$variable?> Less code, quicker load times