HTML Multi-Window page (Frames)

Source: Internet
Author: User
Tags border color window

Basic syntax

<------Basic------->

<frameset> ... </frameset>
<frame src= "url" >
<noframes> ... </noframes>

The text after the <noframes> tag will only appear in browsers that do not support FRAMES.

        <HTML>        <HEAD>        </HEAD>        <FRAMESET>             <frame src= "url" >             < Noframes> ... </NOFRAMES>        </FRAMESET>        </HTML>

<--################## Size ########################-->

Size settings for each window

<------COLS------->

<frameset cols=#>

To arrange multiple windows vertically:
<frameset cols=30%,20%,50%><frame src= "a.html" ><frame src= "b.html" ><frame src= "C.html" > </frameset> Example
A B C

<------ROWS------->

<frameset rows=#>

To arrange multiple windows horizontally:
<frameset rows=25%,25%,50%><frame src= "a.html" ><frame src= "b.html" ><frame src= "C.html" > </frameset> Example
A
B
C

<------COLS & ROWS------->

COLS & ROWS

To arrange multiple windows horizontally:
<frameset cols=20%,*><frame src= "a.html" > <frameset rows=40%,*> <frame src=     "B.html" >     <frame src= "c.html" >     </frameset></frameset> Example
A B
C

<------No Resize------->

Do not allow each window to change size <frame noresize>

The
default setting is to allow each window to resize.

<--################## Frame Target ########################-->

Interoperate between windows (Frame Target)

<------NAME------->

Window identification (Frame Name)
<frame name=#>
<a Href=url target=#>

<frameset cols=50%,50%><frame src= "a.html" ><frame src= "b.html" name= "HELLO" ></frameset> Sample
A B

<------Special Target------->

Special 4-class operations (very useful!)

<a href=url target=_blank> New Window
<a href=url target=_self> This window
<a href=url target=_parent> Parent window
<a href=url target=_top> Entire browser window

Sample

<--################## Frame appearance ########################-->

Appearance of Frame (appearance)

<------BORDER------->

Settings for each window border <frame frameborder=#> #=yes, NO/1, 0

<frameset rows=30%,*><frame src= "acol.html" Frameborder=1><frameset cols=30%,*>     src = "bcol.html" frameborder=0>     <frame src= "ccol.html" frameborder=0></frameset></frameset> Sample
(A has a border, B, C not)
A
B C

<------Frame Spacing------->

Settings for blank areas between windows
Size of <frameset framespacing=#> #= blank area

<frameset rows=30%,* framespacing=100><frame src= "acol.html" ><frameset cols=30%,*>     src= "bcol.html" >     <frame src= "ccol.html" ></frameset></frameset> example
A
B C

<------Border Color------->

Border color <frameset bordercolor=#>

#=rrggbb 16 RGB Digital, or the following predefined color names:
Black, Olive, Teal, Red, Blue, maroon, navy, Gray, Lime,
Fuchsia, White, Green, Purple, Silver, yellow , Aqua .
<frameset rows=30%,* bordercolor=red><frame src= "acol.html" ><frameset cols=30%,*>     src= "bcol.html" >     <frame src= "ccol.html" ></frameset></frameset> example
A
B C

<------MARGIN------->

Page Blank (Margin) <frame marginwidth=# marginheight=#>

<frameset cols=50%,50%><frame src= "a.html" ><frame src= "a.html" marginwidth=50 marginheight     =50></frameset> Sample
Aaaa Aa
Aa

<------SCROLLBAR------->

Roll bar set <frame scrolling=#> #=yes, no, auto

the default value for #= is auto.

<--################## Floating Frame ########################-->

Floating window (floating Frame)

<------floating Frame------->

<iframe src=# name=##> ... </iframe>
#= the URL of the initial page
##= window identification (Frame Name)(after which the identity can be manipulated between windows)
... = The text will only appear in browsers that do not support FRAMES.

<center><iframe src= "a.html" name= "Window" > here is   A floating frame</iframe><br><br ><a href= "a.html" target= "window" >load a</a><br><a href= "b.html" target= "window" >Load B </a><br><a href= "ccol.html" target= "window" >load c</a><br></center> Example 
Display a.html


Load A
Load B
Load C



Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.