[English] [Svenska]
[Home page] [My links] [My products]
[Good frames]
[Create BAD] [Create GOOD] [Convert]

More detailed description

Create GOOD frames (example of good frames)

Good frame are created by creating a unique FRAMESET document for each page that is supposed to be shown. Only create FRAMESET documents for pages written by yourself! Other peoples documents should be shown as they are and in the whole window!
I have choosen to start FRAMESET documents name with 'f_' (Frameset) and the documents with the real content for the pages with 'p_' (Page).

To create two similar pages as in the 'create bad frames' description consekvently two FRAMESET documents are needed!
For page 1: (f_page1.htm)
  <TITLE>Good example, page 1</TITLE>
  <frameset cols="30%,*">
    <frame src="menu.htm">
    <frame src="p_page1.htm">
  </frameset>
for page 2: (f_page2.htm)
  <TITLE>Good example, page 2</TITLE>
  <frameset cols="30%,*">
    <frame src="menu.htm">
    <frame src="p_page2.htm">
  </frameset>
Observe that no names needs to be given here!
The red bolded text is the only thing that differs f_page2 from f_page1. It is therefor very easy to just copy f_page1 to f_page2, and then edit f_page2.

The menu (menu.htm) should look almost like it did in the 'create bad frames' description:
  <BASE TARGET="_top">
  <BODY>
  <P><A HREF="t_page1.htm">Page 1
  <P><A HREF="t_page2.htm">Page 2
Before the BODY line is a BASE TARGET instruction added to tell the browser to show all linked pages in the whole window instead of in the current frame. Furthermore are the TARGET commands removed, because no redirection is needed any more. ALL pages will show up as independent pages in the whole window area!

Page 1's sub window page (p_page1.htm) will look like this:
  <BASE TARGET="_top">
  <BODY>
  <H1>This is page 1</H1>
  <P><A HREF="t_page2.htm">Page 2
Also here is BASE TARGET added before the BODY instruction!

Exactly this code that is described above (more is not needed) with the mentioned names can be looked at in this directory. The main document is f_page1.htm.
 


General documentation about frames can be found at Netscape:
 

[English] [Svenska]
[Home page] [My links] [My products]
[Good frames]
[Create BAD] [Create GOOD] [Convert]

Has been viewed  times. Last update: 12/18/00 13:17:33. © Claes Löfqvist
Index, Frames on