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!

Change footer on 100+ pages

Status
Not open for further replies.

dmaranan

Programmer
Aug 14, 2001
46
US
I have a site in which there are 100+ pages. All that I need to do is change the footer...I realize now I have to change all 100 pages.

However, is there a method of setting up a web page so that each page calls on one footer? So that in the future I only have to change the footer in one place to change them all.
 
You can not drop an include file of type html into another html file.

1) You can set up your website to use frames and include the main content area in a top frame and a footer html file in the bottom frame.

2) You can turn your html website into a server side environment using technologies such as ASP or JSP. A server side environment will allow you to drop in include files with no problem.

3) You can include a javascript file like footer.js at the footer position. Within this external file, you can call the javascript function document.write(""). Within the quotes of this function, you can build your html tags. (It is a little trick, but it works. You will have to watch out for when you would use a quote in you html, b/c javascript will think that you are closing the function. )

Example
<table width=&quot;50&quot;>
vs.
document.write(&quot;<table width=50>&quot;)

Good Luck!
 
Continue...
3) You can include a javascript file like so:

<script language=&quot;javascript&quot; src=&quot;path/filename.js&quot;></script>
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top