Global Header, Footer and Side Bars

Reply

Join Date: Mar 2006
Posts: 2
Reputation: millenniumtrade is an unknown quantity at this point 
Solved Threads: 0
millenniumtrade millenniumtrade is offline Offline
Newbie Poster

Global Header, Footer and Side Bars

 
0
  #1
Mar 30th, 2006
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.
Reply With Quote Quick reply to this message  
Join Date: Dec 2004
Posts: 1,655
Reputation: tgreer is an unknown quantity at this point 
Solved Threads: 35
Team Colleague
tgreer tgreer is offline Offline
Made Her Cry

Re: Global Header, Footer and Side Bars

 
0
  #2
Mar 30th, 2006
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:

HTML and CSS Syntax (Toggle Plain Text)
  1. <!--#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.
Reply With Quote Quick reply to this message  
Join Date: Feb 2005
Posts: 355
Reputation: DanceInstructor is an unknown quantity at this point 
Solved Threads: 14
DanceInstructor's Avatar
DanceInstructor DanceInstructor is offline Offline
Posting Whiz

Re: Global Header, Footer and Side Bars

 
0
  #3
Mar 31st, 2006
PHP and ASP are also server-side options. I have heard of people using javascript to load html files as well.
Clear Mind Hosting and Web Design

If I've helped you please consider adding to my reputation.
Reply With Quote Quick reply to this message  
Join Date: Dec 2004
Posts: 1,655
Reputation: tgreer is an unknown quantity at this point 
Solved Threads: 35
Team Colleague
tgreer tgreer is offline Offline
Made Her Cry

Re: Global Header, Footer and Side Bars

 
0
  #4
Mar 31st, 2006
You can use JavaScript, but that's not the best option, as it forces another server round-trip during the page load.
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:



Similar Threads
Other Threads in the HTML and CSS Forum
Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC