Forum Moderators: not2easy
CSS is a styling thing, so of course you can use CSS to style your navigation no matter what you use to include the page. A good place to look for example of CSS navigation bars is listamatic.
<div id="siteInfo">
<SCRIPT language="JavaScript"src="../scripts/footer.js"></SCRIPT>
</div>
My javascript document is named footer.js and consists of this:
// JavaScript Document
<!--
document.write ('©2006-2007 ABC Company');
//-->
I have some files that are quite long, that's just the footer example.
I script ALL e-mail addresses this way so search-bots won't pick them up.
Sometimes I will add the <noscript> tag so people with their javascripting off will know why they aren't seeing anything...or in the case of e-mail addresses I will write "abc AT abccompany DOT com" in the <noscript> tag.
It's the best way I've discovered to change one file instead of hundreds.
so basically you use Java Script to include a page...
Not a whole page, mind you, just portions of a page.
It's not a perfect method, as mentioned, due to the possibility of people having their javascripting disabled.
I was willing to make the tradeoff because MOST of our clientele (in my employer's industry) most likely will NOT have their javascripting disabled. I would personally guess that most computer user's out there do not turn off their javascripting, but that is just a guess based on generalization - most people like defaults, nerds like customization. ;)
I've had the company site using the javascript includes for two years now and no one has complained...plus I have enough redundant linking that the site is navigable without the scripting as well.
Personally I'd go for PHP or ASP. There is nothing to choose between them and SSI for just including pages, but having the ability to use scripting for other things is very useful. You don't know what sort of functionality you may want to add in the future, leaving the way open for it now is not going to do any harm and you may well be thankful you did so at some future point.