170 likes | 299 Views
Frameset. popo. FrameSet. With frames, we can display more than one HTML document in the same browser window. Each HTML document is called a frame , and each frame is independent of the others. popo. FrameSet. The Frameset Tag
E N D
Frameset • popo
FrameSet • With frames, we can display more than one HTML document in the same browser window. • Each HTML document is called a frame, and each frame is independent of the others. • popo
FrameSet • The Frameset Tag • The <frameset> tag defines how to divide the window into frames • Each frameset defines a set of rows or columns • The values of the rows/columns indicate the amount of screen area each row/column will occupy • popo
FrameSet • <html> • <frameset rows="30%,*"> • <frame src="menu.html"> • <frame src="content.html"> • </frameset> • </html • popo
FrameSet • In the example frameset with two columns. • The first column is set to 30% of the width of the browser window. • The second column is set to 70% of the width of the browser window. • The HTML document “menu.htm" is put into the first column, and the HTML document “content.htm" is put into the second column • popo
FrameSet • If a frame has visible borders, the user can resize it by dragging the border. • To prevent a user from doing this, you can add noresize="noresize" to the <frame> tag. • popo
FrameSet • Cannot use the <body></body> tags together with the <frameset></frameset> tags • popo
FrameSet • <html> • <frameset rows="50%,50%"> • <frame noresize="noresize" src="frame_a.htm"> • <frameset cols="25%,75%"> • <frame noresize="noresize" src="frame_b.htm"> • <frame noresize="noresize" src="frame_c.htm"> • <frame name="aa"> • </frameset> • </frameset> • </html>0 • popo
FrameSet • frame_c.htm • <a href=“load.html” target=aa> onr</a> • popo
FrameSet • The scrolling attribute specifies whether or not to display scrollbars in a <frame>. • By default, scrollbars appear • <frame scrolling="auto|yes|no"> • Auto- Scrollbars appear if needed (this is default) • Yes- Scrollbars are always shown (even if they are not needed) • No-Scrollbars are never shown (even if they are needed) • popo
FrameSet • The frameborderattribute specifies whether or not to display a border around a frame. • <frame frameborder="1|0"> • 1-Border on (this is default) • 0-Border off • popo
FrameSet • The marginheight attribute specifies the height between the content and the top and bottom of the frame, in pixels. • <frame marginheight="pixels"> • popo
FrameSet • The name attribute specifies the name of a <frame> element. • <frame name="text"> • popo
FrameSet • The noresize attribute specifies that a <frame> element cannot be resized by the user. • <frame noresize="noresize"> • By default, each <frame> in a <frameset> can be resized • popo
FrameSet • <html> • <frameset rows="20%,*"> • <frame src="a.html" scrolling="no" frameborder="0" marginheight="50"> • <frameset cols="25%,75%"> • <frame src="b.html"> • <frame src="c.html" name=c> • </frameset> • </frameset> • </html>0 • popo