Author |
Message |
t94xr.net.nz
Junior WebHelper
Joined: 05 Mar 2003
Posts: 4
Location: Taupo NZ
|
Posted:
Sat May 03, 2003 7:46 am (20 years, 12 months ago) |
|
Can someone tell me how to attach html pages together?
is there some sort of JS or DHTML for it???
I want to attach header.htm to index.htm?? |
________________________________ t94xr |
|
|
|
Daniel
Team Member
Joined: 06 Jan 2002
Posts: 2564
|
Posted:
Sat May 03, 2003 7:52 am (20 years, 12 months ago) |
|
Attach as in what? Load index.htm and have it include header.htm? As far as I know, the best way to do that is SSI (Server Side Includes) or PHP. |
________________________________
|
|
|
|
Kdawg
Senior WebHelper
Joined: 21 Apr 2003
Posts: 153
|
Posted:
Sat May 03, 2003 7:05 pm (20 years, 12 months ago) |
|
Do you want to put header.htm at the top of index.htm and you dont mind frames you could use an Inline Frame. Example,
Code: | <iframe
name="header" src="header.htm"
frameborder="0" scrolling="no" width="700" height="100" marginwidth="0"
marginheight="0"> |
You would need to change the height and width but might work for what you are trying to do. If you want the frame to be at the very top just put the code at the top of the body section in index.htm. You might also need to add marginheight="0" to the body tag. |
|
|
|
|
verto
Senior WebHelper
Joined: 14 Jan 2002
Posts: 220
Location: Cambridge MA USA
|
Posted:
Sun May 04, 2003 1:41 am (20 years, 12 months ago) |
|
If you only know HTML and aren't ready to learn enough to work a little bit with some new tags or languages, then the easiest way might just be to use an HTML frameset, and there are tons of tutorials on the Web you can find to show you how that's done.
Both SSI (which Daniel mentioned) and framesets have been used for a long time, and have good browser support. However, iframes (which Kdawg mentioned) are browser-dependent, or in other words, won't work in all browsers, so may not work for you, depending on which browsers you want to support.
SSI and PHP are server-dependent, so you'll have to find out if your host supports them. PHP includes are extremely easy, and in most cases much easier than HTML framesets once you've learned the basics of PHP, which isn't too hard really. Check some of this site's tutorials for a quick intro to PHP or just to check it out. They might easily be all you need to get going.
A Couple of 4WH PHP Starter Tutorials:
What Is PHP?
The Basics |
________________________________ >>>>>>>>>>>>>
GENERAL DISCLAIMER:This disclaimer may be void where null in all cases unless explicitly not unprohibited or (p)re-exclusively assigned by sufficient presedimentation on behalf of every non-interested party to wit (or so it was said).
:::
.: :. . : :....: :.: .: :. verto .: :. . : :....: :.: .: :. |
|
|
|
Daniel
Team Member
Joined: 06 Jan 2002
Posts: 2564
|
Posted:
Sun May 04, 2003 8:44 am (20 years, 11 months ago) |
|
verto, just one thing: SSI doesn't need "good browser support", since it's server-side
Other than that, a very helpful post |
________________________________
|
|
|
|
verto
Senior WebHelper
Joined: 14 Jan 2002
Posts: 220
Location: Cambridge MA USA
|
Posted:
Sun May 04, 2003 6:45 pm (20 years, 11 months ago) |
|
ha, you caught me there, Daniel, thank you.
I guess you could almost say that SSI has 'perfect browser support,' much like PHP and other back-end stuff, if it weren't for that 'pesky' Lynx browser some folks still use (jk).
Now we just have to wait for t94xr.net.nz to post that (s)he already found out how to make hyperlinks on another site, eh? |
________________________________ >>>>>>>>>>>>>
GENERAL DISCLAIMER:This disclaimer may be void where null in all cases unless explicitly not unprohibited or (p)re-exclusively assigned by sufficient presedimentation on behalf of every non-interested party to wit (or so it was said).
:::
.: :. . : :....: :.: .: :. verto .: :. . : :....: :.: .: :. |
|
|
|
Daniel
Team Member
Joined: 06 Jan 2002
Posts: 2564
|
Posted:
Sun May 04, 2003 6:49 pm (20 years, 11 months ago) |
|
Knowing t94xr.net.nz from another forum, and as a phpBB I'm kind of puzzled as to why (s)he posted this in the first place - seems like (s)he would already know how about PHP and things like that... |
________________________________
|
|
|
|
SfCommand
Senior WebHelper
Joined: 10 Nov 2002
Posts: 143
Location: UK
|
Posted:
Sun May 04, 2003 10:08 pm (20 years, 11 months ago) |
|
|
|
|
Daniel
Team Member
Joined: 06 Jan 2002
Posts: 2564
|
Posted:
Mon May 05, 2003 5:52 am (20 years, 11 months ago) |
|
Yes, it is, but I know him/her from somewhere else |
________________________________
|
|
|
|
verto
Senior WebHelper
Joined: 14 Jan 2002
Posts: 220
Location: Cambridge MA USA
|
Posted:
Tue May 06, 2003 1:55 am (20 years, 11 months ago) |
|
SfCommand wrote: | t94xr.net.nz is a message board eh! |
They also seem to be one of those 'rambling' type posters that sow their 'wild seed' and never look back.
A bit disappointing to see them ignore this thread and our replies, but then go posting in a different thread on 4WH. |
________________________________ >>>>>>>>>>>>>
GENERAL DISCLAIMER:This disclaimer may be void where null in all cases unless explicitly not unprohibited or (p)re-exclusively assigned by sufficient presedimentation on behalf of every non-interested party to wit (or so it was said).
:::
.: :. . : :....: :.: .: :. verto .: :. . : :....: :.: .: :. |
|
|
|
Kdawg
Senior WebHelper
Joined: 21 Apr 2003
Posts: 153
|
Posted:
Tue May 06, 2003 2:36 am (20 years, 11 months ago) |
|
Ya framesets would be more browser complient but I think that iframes are eaiser. iframes work in NS and IE, those are the only two browsers I care about. |
|
|
|
|
verto
Senior WebHelper
Joined: 14 Jan 2002
Posts: 220
Location: Cambridge MA USA
|
Posted:
Tue May 06, 2003 3:03 am (20 years, 11 months ago) |
|
Uh, huh, iframes are a little less code than frames, though PHP would be even less. ;0
Which versions of NS and IE do iframes, d'ya know? Pretty sure NN4 doesn't, which they prolly don't care, but how about NS 6? |
________________________________ >>>>>>>>>>>>>
GENERAL DISCLAIMER:This disclaimer may be void where null in all cases unless explicitly not unprohibited or (p)re-exclusively assigned by sufficient presedimentation on behalf of every non-interested party to wit (or so it was said).
:::
.: :. . : :....: :.: .: :. verto .: :. . : :....: :.: .: :. |
|
|
|
Kdawg
Senior WebHelper
Joined: 21 Apr 2003
Posts: 153
|
Posted:
Tue May 06, 2003 3:11 am (20 years, 11 months ago) |
|
|
|
|
SfCommand
Senior WebHelper
Joined: 10 Nov 2002
Posts: 143
Location: UK
|
Posted:
Tue May 06, 2003 10:02 am (20 years, 11 months ago) |
|
|
|
|
Daniel
Team Member
Joined: 06 Jan 2002
Posts: 2564
|
Posted:
Tue May 06, 2003 3:04 pm (20 years, 11 months ago) |
|
verto wrote: | A bit disappointing to see them ignore this thread and our replies, but then go posting in a different thread on 4WH. |
t94xr.net.nz's last post, before this one, was on March 5th... |
________________________________
|
|
|
|
|