Go Back   PCMech Forums > Help & Discussion > Web Design / Development

Need Some Help? Type Your Keywords Here:

Reply
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
Old 08-14-2003, 06:08 PM   #1
Member (9 bit)
 
Join Date: Dec 2001
Location: US
Posts: 468
Send a message via AIM to wilbasket23 Send a message via Yahoo to wilbasket23
question about web page programming?

hello, recently i created a web site. there are some questions come across my mind. is there a way that i can program a web page where each page will have idential header footer and menu only the content will change from page to page. is there a way to do it. i realize that if i code html tag into every page will be hassle if later on i want to change something then i have to change every page. is there a faster way to do it. thank you
wilbasket23 is offline   Reply With Quote
Old 08-14-2003, 06:51 PM   #2
Member (8 bit)
 
ScurrilousPrune's Avatar
 
Join Date: Jul 2002
Location: California
Posts: 240
Send a message via AIM to ScurrilousPrune
Well, I think you can use frames for that, although it doesn't work great as far as browser compatibility goes. The best way (IMO) would be to just code a template with your header and footer and menu on it, then just make a blank space to add stuff in between the two. That way, if you want to make another page with the same text you can just highlight all the text, delete it, and add new text. I recently made a site kind of like this for a networking/telecom company. Check out Nextlevel Systems .
__________________

The Black Mamba:


[Dell Dimension 8200]
----------------------------
|Pentium 4 2.53GHZ|512MB RAM|80GB HDD|Mad Dog 16X DVD-ROM/52X CDRW|HL-DT-ST 48X CD-RW|Geforce 4 Ti4200 64MB|Sound Blaster Live!|
|Harman/Kardon Speakers|Microsoft Optical Wheel Mouse|Windows XP Home|San Bruno/RCN Cable|


The Nuclear Gamer:


[Custom Built PC - Nuke]
----------------------------
|ABS Case|Antec 550w ATX2.2 PSU|AMD Athlon 64 3200+|ASUS A8N-VM CSM Socket 939 Motherboard|1536 GB Corsair Valuselect PC3200 DDR RAM (3 X 512MB)|160GB Seagate SATA|160GB WD Caviar IDE|(2X) NEC 7170A DVDRWs|Nvidia Geforce 7600GS 256MB PCI-e|Creative Soundblaster Live! 24-bit|Dell 2.1 Speakers|Microsoft Optical Wheel Mouse|Sceptre Naga-III 20.1" LCD Monitor|Windows XP Home|RCN Cable|
ScurrilousPrune is offline   Reply With Quote
Old 08-14-2003, 10:15 PM   #3
Member (9 bit)
 
Join Date: Dec 2001
Location: US
Posts: 468
Send a message via AIM to wilbasket23 Send a message via Yahoo to wilbasket23
can u give me some example on how to set u pthe frame
wilbasket23 is offline   Reply With Quote
Old 08-15-2003, 01:54 AM   #4
Member (11 bit)
 
TheJackal's Avatar
 
Join Date: Aug 2002
Location: BC, Canada
Posts: 1,054
Follow the link below and you will get all the info you need to set up your frames...

http://www.htmlgoodies.com/tutors/fram.html
TheJackal is offline   Reply With Quote
Old 08-15-2003, 02:53 AM   #5
Member (5 bit)
 
Join Date: Aug 2003
Location: Wales, UK
Posts: 31
Urgh! Don't use frames! They are nasty! You could use something like Frontpage to set up templates that will allow you to make a template that is editable so that any changes made are applied to all your web pages. I'm not a fan of Frontpage but am not sure if Dreamweaver does this. Alternatively, if you have CGI access you could use a server side include to output whatever text you need and place the link at the top and bottom of each page.
Meethoss is offline   Reply With Quote
Old 08-15-2003, 05:57 AM   #6
Staff
Premium Member
 
mairving's Avatar
 
Join Date: Jul 1999
Location: Arlington, TN
Posts: 5,538
Frames are very dated as well as SSI includes. There are much better ways to do things now. If you host supports php, it is quite easy to build a header, a footer and a content section. You include the header and footer in every page. You can even add a variable to change the page title if you want. Here is an example:
PHP Code:
<?php 
include("header.inc");
?>
Content goes here
<?php 
include("footer.inc");
?>
Basically you would create a page and then chop it into as many pieces as you want, usually 3 or 4, then include those pieces. You want to change something in the header, it changes for all pages.
mairving is offline   Reply With Quote
Old 08-19-2003, 06:50 AM   #7
Member (7 bit)
 
chris1977uk's Avatar
 
Join Date: Sep 2002
Location: Middlesbrough, UK
Posts: 108
step one, don't use frontpage, it sucks!!

there r serveral ways of doing this.

frames is the obvious one, but there are new ways of doing things too.

SSI would be ok too, doesnt have to be php either, ASP will do it fine:

< !--#include file="header.htm" -- >

maybe use an I-Frame, or you could use layers, these are pretty advanced though

id use frames if i was you, it'll do the job fine
chris1977uk is offline   Reply With Quote
Reply

Bookmarks

Still Need Help? Type Your Keywords Here:


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is On
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -5. The time now is 08:05 AM.
Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2012, vBulletin Solutions, Inc.
SEO by vBSEO 3.6.0 PL2