Using JS for something like this would be horrid to try and maintain, plus it wouldn't work in browsers that don't support scripting.
A serverside include would be the best solution. SSIs are not difficult to implement, but exact syntax depends on the server. What does your site run serverwise and languagewise?
Main Topics
Browse All Topics





by: fozyletPosted on 2003-12-18 at 00:44:23ID: 9962819
You would need to use some javascript for this, if a pure html solution is needed.
The js could write the header part of the page using document.write and you could call this js wherever the header need to be in each page.
The same cane be done for footer, left menu, etc so that by changing just these js files the look of the site will change.