944,196 Members | Top Members by Rank

Ad:
Mar 30th, 2006
0

Global Header, Footer and Side Bars

Expand Post »
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.
Similar Threads
Reputation Points: 10
Solved Threads: 0
Newbie Poster
millenniumtrade is offline Offline
2 posts
since Mar 2006
Mar 30th, 2006
0

Re: Global Header, Footer and Side Bars

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.
Team Colleague
Reputation Points: 227
Solved Threads: 37
Made Her Cry
tgreer is offline Offline
1,697 posts
since Dec 2004
Mar 31st, 2006
0

Re: Global Header, Footer and Side Bars

PHP and ASP are also server-side options. I have heard of people using javascript to load html files as well.
Reputation Points: 17
Solved Threads: 14
Posting Whiz
DanceInstructor is offline Offline
355 posts
since Feb 2005
Mar 31st, 2006
0

Re: Global Header, Footer and Side Bars

You can use JavaScript, but that's not the best option, as it forces another server round-trip during the page load.
Team Colleague
Reputation Points: 227
Solved Threads: 37
Made Her Cry
tgreer is offline Offline
1,697 posts
since Dec 2004

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in HTML and CSS Forum Timeline: want one more help
Next Thread in HTML and CSS Forum Timeline: Help with some email form features





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC