| | |
Global Header, Footer and Side Bars
Please support our HTML and CSS advertiser: PostgreSQL or MySQL? Compare and contrast the two most popular open source databases
![]() |
•
•
Join Date: Mar 2006
Posts: 2
Reputation:
Solved Threads: 0
I have been working on this for a few days now and can not seem to figure it out. I’m no pro webmaster just part time, so bare with me here please.
Ok so what I am doing is creating a new site in FrontPage. What I can’t figure out is how to make a menu file that I would implement into my pages so that when I change it, the change goes “global� or on ever page of my site. Additionally I would need know how to implement this into my site. I have read some stuff on make templates but for some reason everything I try doesn’t want to work.
Want I want is to make all of my webpages setup so that the header, side menu and footer can all be changed from three seprate files. This way I wouldn't have to go to each page to make a change to say.. the header.
Please help me here.
Thanks.
Ok so what I am doing is creating a new site in FrontPage. What I can’t figure out is how to make a menu file that I would implement into my pages so that when I change it, the change goes “global� or on ever page of my site. Additionally I would need know how to implement this into my site. I have read some stuff on make templates but for some reason everything I try doesn’t want to work.
Want I want is to make all of my webpages setup so that the header, side menu and footer can all be changed from three seprate files. This way I wouldn't have to go to each page to make a change to say.. the header.
Please help me here.
Thanks.
•
•
Join Date: Dec 2004
Posts: 1,655
Reputation:
Solved Threads: 35
I don't know a thing about FrontPage, so if there's a nifty button to press to accomplish this, someone else will have to chime in.
You're asking in the HTML/JavaScript/CSS forum... but I'll just assume that's because you're lumping all web development together as "HTML". The best answer for your task, though, is to use a server-side include, rather than a script.
A server-side include looks like a comment. In fact, it's a specially-formatted comment that looks like this, for including an HTML file in every page:
Note: your web server must be configured to support SSI, so check with your web hosting company. In almost all cases, part of that configuration requires that your files have an ".shtml" extension, rather than ".html".
Another Note: each page that needs to include the file, will need the include directive. However, when you change the code within the header or footer, every page that includes it will get the new version.
You're asking in the HTML/JavaScript/CSS forum... but I'll just assume that's because you're lumping all web development together as "HTML". The best answer for your task, though, is to use a server-side include, rather than a script.
A server-side include looks like a comment. In fact, it's a specially-formatted comment that looks like this, for including an HTML file in every page:
HTML and CSS Syntax (Toggle Plain Text)
<!--#include virtual="/path/to/your/file.html" -->
Note: your web server must be configured to support SSI, so check with your web hosting company. In almost all cases, part of that configuration requires that your files have an ".shtml" extension, rather than ".html".
Another Note: each page that needs to include the file, will need the include directive. However, when you change the code within the header or footer, every page that includes it will get the new version.
PHP and ASP are also server-side options. I have heard of people using javascript to load html files as well.
![]() |
Similar Threads
- Global Header, Footer and Side Bars (Site Layout and Usability)
- navigational help (ASP.NET)
- No page header and footer when printing a web page (JavaScript / DHTML / AJAX)
Other Threads in the HTML and CSS Forum
- Previous Thread: want one more help
- Next Thread: Help with some email form features
| Thread Tools | Search this Thread |
appointments asp background backgroundcolor beta browser bug calendar cart cgi code codeinjection corporateidentity css design development displayimageinsteadofflash dreamweaver emailmarketing epilepsy explorer firefox flash form format google griefers hackers hitcounter hover html ide ie7 ie8 iframe image images internet internetexplorer intranet iphone javascript jpeg layout macbook maps marketshare microsoft mozilla multimedia navigationbars news offshoreoutsourcingcompany opacity opera optimization pnginie6 positioning problem scroll seo shopping studio swf swf. textcolor timecolor titletags url urlseparatedwords visual visualization web webdevelopment webform website windows7






