tags:

views:

21

answers:

4

i am making side all pages static html

i want to make footer another page and i want to show all my web page

because when i have to make change in footer then i will have to change all of my web pages its so difficult i want when i change one page it will appear all pages

how can i do it please help me i am using html pages

Thank's

A: 

I see that you're using HTML. Have you considered using PHP? All you need to do is change your page to .php instead of .html and you have a php page. Now, if you make a page, say footer.php, on each of your pages your can add this line:

<?php include 'my/file/path/footer.php'; ?>

Anything that you have in your footer.php file will be included in that page.

Aaron Hathaway
+1  A: 

There is no way to use this using straight HTML - you will need some server side technology - PHP, ASP, Server Side Includes, etc.

Here is a pretty basic break down of some of the options. http://webdesign.about.com/od/ssi/a/aa052002a.htm

brendan
A: 

For purely static HTML, some IDEs can handle this effectively. In Dreamweaver, you can create a template that your site will use. This template can include an editable section and a non-editable section that contains your footer. You then create pages based on this template. When you update the template, Dreamweaver will handle updating all other pages on your site that are based on that template.

Edit: This is an example of a template in Dreamweaver that I made a couple years back for a group project.

The Bobs (Screenshot)

The area surrounded by the blue-green rectangle is the editable region (for pages created based on this template).

Leonard Thieu
A: 

Common web servers allows you to prepend or append contents to all pages on particular web app.

For instance in IIS, you can select a an html file for every document you web server returns: it could be found in the IIS website/app properties then in Documents tab.

For Apache Server:

http://perl.guru.org/scott/hobbies/apache/

jerjer