Frames are defined as multiple pages that are displayed in one window at
the
same time, for instance a menu on the left and a main page on the right.
Before I teach anyone anything regarding frames, I'm going to make this
disclaimer: Don't blame me for sites that misuse these frames. I'm
going to be
as thorough as I can.
1. You need three HTML files. The first is called the frameset and the
other
two are just like any page you've made before.
2. The frameset assigns which page goes on which frame. Write the
frameset
like this:
Frames Example
3. Name one page "menu.html" and one "main.html". View the frameset.
(Go to
File | Open Page on Internet Explorer or Netscape to view.)
4. When linking, and you want a link to open in another frame, write
like this
(again, take out the dollar signs):
Text link to page 2
This will make a text link that should be placed on the menu. It will
open in
the main frame.
5. When you are linking to a site other than your own, and you don't
want
people to get caught in your frames, change the target="main" to
target="_top"
instead. Visitors will appreciate this more than you will ever know.
Now you have frames. You can change the frame names as long as they
match the
ones on the frameset.
|