|
| |
Using Frames
Frames are used as an easy site navigation tool. If someone has a difficult time finding the
important links on your site, they will probably leave. Frames allow you to keep those links on
the screen at all times, while the rest of the screen contains your information. For example,
the books on the left that link you to different places in this site are always in the same
position on the left. However, you are able to scroll through the text you are reading now.
Some disadvantages to using frames so exist. For instance, older browsers and readers for the
visually challenged cannot interpret frames. To handle the problem with the older browsers, some
people prefer to use tables instead of frames. Another option is to create two versions of your
web page: one with frames and one without. However, the only way to make your site
accessible to
the readers is to not use frames or tables. Style Sheets work best in those situations.
Frames are denoted by the tags:
 | <FRAMESET> . . . </FRAMESET> -- Attributes may include 'cols= ', 'rows= ',
'framespacing= ', and 'scrolling= '. |
 | <FRAME> . . . </FRAME> -- Attributes may include 'marginheight= ', 'marginwidth= ',
'name= ', 'noresize= ', 'src= ', and 'scrolling= '. |
 | <NOFRAMES> . . . </NOFRAMES> -- This is what denotes the beginning and end of what
you wish to display to those browsers that cannot interpret frames. |
Frame related attributes include:
 | COLS=((#% or # or *), (#% or # or *)) -- This may be used to create the frames as columns.
The first number listed, as either a percentage of the page or a pixel value, defines the width
of the first column. You may also give a percentage or pixel value to define the second column.
However, using the '*' will allocate all of the remaining width to the first or second column,
depending on where it was used. It is used in the 'FRAMESET' tag. |
 | ROWS=((#% or # or *), (#% or # or *)) -- This may be used to create the frames as rows.
The first number listed, as either a percentage of the page or a pixel value, defines the height
of the first row. You may also give a percentage or pixel value to define the second row.
However, using the '*' will allocate all of the remaining height to the first or second column,
depending on where it was used. It is used in the 'FRAMESET' tag. |
 | FRAMESPACING=# -- This may be used to set the spacing, in pixels, between the frames.
It is used in the 'FRAMESET' tag. |
 | SCROLLING=(YES, NO, or AUTO) -- This will determine whether or not scroll bars are shown for
frames. It is used in the 'FRAMESET' and/or 'FRAME' tags. |
 | MARGINHEIGHT=# -- This may be used to define top and bottom margins in the frame. It is used
in the 'FRAME' tag. |
 | MARGINWIDTH=# -- This may be used to define left and right margins in the frame. It is used
in the 'FRAME' tag. |
 | NAME="?" -- This defines a target name for the frame. (Type your name instead of the '?'.) |
 | SRC=# -- This specifies the source file for the frame. |
 | NORESIZE -- This keeps the user from being able to resize the frame on his/her browser. |
|