Include files in HTML

liunx

Guest
Hi all,<br />
I have just started to design a new page. The menus on the top and left are going to be common in all the 50 pages. I cannot use frames. I want to know if there is anywayusing which I can have one file each for the top and left menus..so that alteration in one page reflects in all the 50 pages.<br />
<br />
I need this help ASAP..<br />
<br />
Thanks for everybody who is taking teh trouble<br />
Regards<br />
Srini:)<!--content-->yes but you have to rename all your pages to shtml instead of html. the reason is you need to use SSI (serverside includes) and this allows you to insert files like you want.<br />
<br />
the other alternative is to include them with a javascript link. that way you can keep your html syntax.<!--content-->side NOTE: netscape doesnt like the javascript print (older versions)<br />
<br />
try this for including your pages<br />
create the following page and name it mypage.htm <br />
<html> <br />
<head> <br />
<title></title> <br />
</head> <br />
<body> <br />
this text is all mine! <br />
</body> <br />
</html> <br />
<br />
then create the following page and save it as test.shtml <br />
<html> <br />
<head> <br />
<title></title> <br />
</head> <br />
<body> <br />
the great bambino!<br> <br />
<!--#include file="mypage.htm"--> <br />
</body> <br />
</html> <br />
<br />
NOTE: the 2 pages will need to be in the same directory on the server! (example: d:\inetpub\wwwroot\testdir\ <br />
<br />
if you need any help, just ask! <br />
chris<pixelmonkey><!--content-->
 
Back
Top