|
|
| Author |
Message |
Banzai
Guest
|
Posted: 12/06/04 - 20:21 Post subject: HTML Frames question
|
|
|
OK, I have read 3 tutorials but none of them has the logic that makes sense to me can someone clue me in.
I've hated frames for a long time but now feel like I want to give them a shot.
I know the principle behind them, I even know how to create them, what I'm confused on is what is the logic on how they get displayed?
Normal html has the index, the index point to the jpgs. What does a frame page point to? Is there an index?
Basically I have these frames I've made in dreamweaver but when I bring them all up I just see that one frame. What holds them together? Do I still point to a modified version of the index.htm?
I feel like noob and I've been doing this shit for the better part of 5 years.
|
|
|
Back to top
|
|
|
|
 |
Nahualli
RealPoor Master of Posts

Joined: 11 Oct 2002 Posts: 8461
|
Posted: 12/06/04 - 20:23 Post subject:
|
|
|
Why in god's name would you want to waste your time using frames? Those are so 1998.
-Nah-
|
|
|
Back to top
|
|
|
|
Are you skilled mage or a hardboiled warrior in search for most suitable guild to join?
Or if you're already guild member ready to share some real PvP experience…
» Join the Guild Wars forum now! «
|
|
|
 |
Banzai
Guest
|
Posted: 12/06/04 - 20:25 Post subject:
|
|
|
I have someone who wants a header and nav bar in non scrolling frames.
I think they are getto but I need to learn this shit anyway.
|
|
|
Back to top
|
|
|
|
 |
Banzai
Guest
|
|
|
Back to top
|
|
|
|
 |
Nictathan
RealPoor Master of Posts

Joined: 11 Oct 2002 Posts: 5531
Location: here... where I am... not with you
|
Posted: 12/06/04 - 20:49 Post subject:
|
|
|
|
Setup the frames as you want them, each portion of the page (the main page plus the nav frame or whatever) will each have a seperate HTML file that it will call on to display.
|
|
|
Back to top
|
|
|
|
 |
Oggabish
Luke Warm

Joined: 12 Feb 2003 Posts: 201
|
Posted: 12/06/04 - 20:50 Post subject:
|
|
|
You can use iframes for that. It pretty much acts like a frame - you point it to an external HTML document and it will display it. The awesome thing about iframes is that you can embed them into tables in a regular HTML document. And your index page can contain data instead of just references to frame documents.
Other than that... If you're using frames, your index.html will only contain references to frames. All of the information will be stored in the frame documents themselves.
For the example that you posted you could use:
| Code: | <!-- Declaring frame set, 2 rows, 1st is 200 pixels tall, second will adjust based on browser window size. -->
<frameset rows="200,*">
<!-- Source file for the 200px header -->
<frame src="header.html" name="header" noresize>
<!-- Source file for the content -->
<frame src="content.html" name="content" noresize>
</frameset>
<!-- If the client's browser cannot display frames, this section will be displayed. -->
<noframes>
This site uses frames. However, your browser does not support or is not configured to display frames.
</noframes>
|
That's assuming you want your header to be 200 pixels in height.
Edit: All of this should go into index.html. Other things should go into linked documents.
Last edited by Oggabish on 12/06/04 - 20:52; edited 1 time in total
|
|
|
Back to top
|
|
|
|
 |
gotissues68
RealPoor Sensei

Joined: 21 Aug 2003 Posts: 1866
|
Posted: 12/06/04 - 20:51 Post subject:
|
|
|
| Nahualli wrote: | Why in god's name would you want to waste your time using frames? Those are so 1998.
-Nah- |
Frames make teh baby jesus cry
|
|
|
Back to top
|
|
|
|
 |
|
|