|
1)Definition of frame
You can use frame dividing a web browser screen into several
fields while you stay in the page, you can call the page linked.
2)Organization of frame document
The document included frame function use <frameset>
without <body>.
-<html>
<head>......</head>
<frameset>
</frameset>
</html>
3)Form of frame
You can use <frameset> when you divide a screen, it
appoints how to divide the window.
<frameset rows/cols="division percentage/pixel value">
-rows="division percentage/pixel value"
rows means that it divides the window horizontally, the size
or the number of window is followed by the definition in quotation
mark.
The number of window is divided into comma, the size is divided
into division percentage or pixel unit in quotation mark.
At this stage, the division percentage is applied by % value
from 1 to 100, the total window size is 100%.
-cols=It divides vertically in contrast to row, the definition
in quotation mark is same as rows.
Ex)<frameset rows="20%,80%">two windows divided
as percentage of 20:80 horizontally.
<frameset cols=*.*">two windows divided as the
same size vertically.
4)How to manage a screen set by frameset
<frameset cols="30%,70%">
<frame src="a.htm" name=a>
<frame src="b.htm" name=b>
</frameset>
src="url" : It connects url connected to each window.
name="frame name": To use, or control frame effectively,
it names each window.
To divide a screen as shown above, 3 files are needed. a.htm,
b.htm, frame.htm
<frameset></frameset> attribute
rows= It divides a screen into line horizontally as the percentage.
cols= It divides a screen into line vertically as the percentage.
border= It appoints the thickness between frame and frame.
framespacing= It appoints the space between frame and frame.
bordercolor= It appoints the color between border and border.
<frame>....</frame> attribute
src="url" It appoints the place of frame file divided.
Name="aa" It names the frame.
marginwidth="number" It appoints the space between
contents in frame and frame border line.
marginheight="number"It appoints the space between
contents in frame and frame border line.
scrolling=auto/yes/no> It decides whether scroll bar is
used or not in frame.
noresize= ¡æ It is not allowed to change the specified frame
size.
<noframe>..</noframe>¡æ For the user whose browser
is not supported by frame, it inserts the contents output
in browser.
frameborder = yes/no ¡æ It decides whether the outline between
frame and frame is used or not.
target :
_blank : It makes the new window.
_parent : It shows to the right window ignoring the frame
structure.
_self : It shows the place as specified.
_top : It ignores the total frame structure.
|