User Name Password Register
DaniWeb IT Discussion Community
All
What is DaniWeb IT Discussion Community?
You're currently browsing the HTML and CSS section within the Web Development category of DaniWeb, a massive community of 401,726 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 4,119 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our HTML and CSS advertiser: Lunarpages Web Hosting
Views: 2020 | Replies: 3
Reply
Join Date: Mar 2006
Posts: 2
Reputation: millenniumtrade is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 0
millenniumtrade millenniumtrade is offline Offline
Newbie Poster

Help Global Header, Footer and Side Bars

  #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.
AddThis Social Bookmark Button
Reply With Quote  
Join Date: Dec 2004
Posts: 1,590
Reputation: tgreer is an unknown quantity at this point 
Rep Power: 7
Solved Threads: 34
Colleague
tgreer tgreer is offline Offline
Made Her Cry

Re: Global Header, Footer and Side Bars

  #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:

<!--#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  
Join Date: Feb 2005
Posts: 354
Reputation: DanceInstructor is an unknown quantity at this point 
Rep Power: 4
Solved Threads: 12
DanceInstructor's Avatar
DanceInstructor DanceInstructor is offline Offline
Posting Whiz

Re: Global Header, Footer and Side Bars

  #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  
Join Date: Dec 2004
Posts: 1,590
Reputation: tgreer is an unknown quantity at this point 
Rep Power: 7
Solved Threads: 34
Colleague
tgreer tgreer is offline Offline
Made Her Cry

Re: Global Header, Footer and Side Bars

  #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  
Reply

Only community members can participate in forum threads. You must register or log in to contribute.

DaniWeb HTML and CSS Marketplace
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 

Thread Tools Display Modes

Similar Threads
Other Threads in the HTML and CSS Forum

All times are GMT -4. The time now is 9:16 am.
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC