It's a server side included file if it's a file on the server that's included in the HTML when the page is sent to the browser.
The quickest way for me to show you is by directing you to my own site
See the navigation on the left?
It exists as a seperate bit of code to the rest of the page.
That's the menu code in isolation. It's just XHTML, nothing more special.
(I broke my own rule there and gave it a .inc extension. You are better off using .html really, though it's not important here)
I am using PHP to include the file so on each page in my site I have this where the menu would be:
Code:
<?php
include("navMenu.inc");
?>
That's it.
When my webserver gets a request for a page on my site, it reads the PHP and assembles the page, including the navigation file, then sends the resulting HTML back to the user's browser.
This means that if I add or remove a page I can simply edit that one file (navMenu.inc) and the new navigation is applied to every page in the site.
Regarding Java and JavaScript.
1. Be under no illusion, they are TOTALLY different things.
Java is a full blown programming language that is suited (supposedly) to web applications as it is very compact and highly portable/platform independent.
JavaScript, is a browser scripting language that doesn't really bear any relation to Java. It can be used on a web page to control things on the USER side. Therefore, if it is disabled on a user's browser anything you do with JavaScript will not work.
For that reason (same as with Flash really), I would not use JavaScript alone to create a navigation system. There must always be a way to navigate the site if JavaScript is turned off.
Foamcow Heavy Industries - Web design and ranting
Toccoa Games - Day of Defeat gaming community
Target Marketing Communications - Advertising, Direct Marketing and Public Relations
"I'm making time