Hi, I want to make a navigation menu for my website. This menu will be displayed on 20 pages. I want to be able to modify this menu on all pages in just one document. Is this possible? If so, how? Regards.
Do you want something basic or fancy? Regarding modification that is done within the CSS file, once the navigation has been created and styled with CSS.
If you mean you want to add extra links to your menu and have it update the whole site from one file, then using php files is a good way to go. So you have your menu in a menu.php file then use <?php include 'menu.php'; ?> where you want the file content to display in your other php pages.
you can solve this with php. Make yoru navigation menu in one document and include it all your pages. When you make changes on your navigation page it will be enough.. Search include function.
I would say if you are looking to create a css menu, either google it or go to http://www.dynamicdrive.com/
It's possible to do this with php includes (.php pages) or server side includes (.shtml pages). If you need to run other php scripts then it's best to go with php pages. All you have to do is edit the common header/footer include and it will update on all pages.
You can check the script name (current page ) using $_SERVER[PHP_SELF] and then you can check whether its your needed document using strpos() You can implement a condition checking inside the menu.php file which you include in all pages as header section or side bar section.
This tutorial has code for including a menu: http://www.tizag.com/phpT/include.php If you want to add a bit of style to the menu, check out this awesome site: http://www.cssplay.co.uk/menus/