You could use Ajax to include the HTML, or you could put the HTML in a file called menu.html, and then put the following lines in an external js-file, say include.js, which would contain the following lines:
Code:
if(window.opera)
{document.write('<iframe src="menu.html" width="0" height="0" name="menu" ></iframe>');}
else document.write('<object type="text/html" data="menu.html" width="0" height="0" name="menu" ></object>');
function extractMenu(){
try{
document.body.innerHTML+=window.frames['menu'].body.innerHTML;
}
catch(e){
document.body.innerHTML+=window.frames['menu'].document.body.innerHTML;
}
}
window.onload=extractMenu;
and which is included on every page by putting this in the head of the pages:
<script type="text/javascript" src="include.js"></script> (the styles and css for the menu (written in menu.html) must also be put in the head of every page (not in menu.html).
Or: try this.
===
Arie.
Bookmarks