Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Common Code

Status
Not open for further replies.

Neily

Programmer
Jul 27, 2000
342
GB
Is it possible to make web pages use a common page file so that if I change the design of my site slightly I only need to change the one file.

What I mean is have a seperate file that all web pages refer to for copmmon stuff between all pages.

Thanks Neil
 
you can use include files:

<!--#include file=&quot;common_stuff.html&quot;-->

add this line where-ever you want the common stuff to appear, and store the common stuff in the common_stuff.html file, or whatever you want to call it.

in the case of script functions (javascript, vbscript) that are frequently used, they can be stored in an include file, then included at the top of your page and the functions/subroutines can then be called throughout the page.
 
Note that if you use the include line mentioned above you will probably need to rename your .html files to .shtml Tracy Dryden
tracy@bydisn.com

Meddle not in the affairs of dragons,
For you are crunchy, and good with mustard.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top