|
|||||||
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
#1 |
|
Member (9 bit)
|
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
|
|
|
|
|
|
#2 |
|
Member (8 bit)
|
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| |
|
|
|
|
|
#3 |
|
Member (9 bit)
|
can u give me some example on how to set u pthe frame
|
|
|
|
|
|
#4 |
|
Member (11 bit)
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 |
|
|
|
|
|
#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.
|
|
|
|
|
|
#6 |
|
Staff
Premium Member
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:
|
|
|
|
|
|
#7 |
|
Member (7 bit)
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 |
|
|
|
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|