1 / 11

Frames

Frames. How to Create Frames in HTML Dr. Sanders. Why Frames?. Frames allow you to have more than a single window on the screen at the same time. You can keep a menu on the screen and bring up different information. Able to create Web sites that change dynamically with student input.

rafe
Download Presentation

Frames

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Frames How to Create Frames in HTML Dr. Sanders

  2. Why Frames? • Frames allow you to have more than a single window on the screen at the same time. • You can keep a menu on the screen and bring up different information. • Able to create Web sites that change dynamically with student input. • Requires JavaScript

  3. Frames • Frame are trickier than tables, and you cannot use Composer to create frames. Other tools such as PageMill and DreamWeaver make it easy to create frames. • A single page with frames has at least three HTML files: • Frameset file • Frame 1 and Frame 2 files

  4. Frameset • The frameset file is an invisible one that places the frames where you want on a page. Here’s the code for a simple set. <FRAMESET COLS=“15%,85%”> <FRAME SRC= “PageA.html”> <FRAME SRC= “PageB.html”> </FRAMESET>

  5. Frame Arrangement Frame 2 Frame 1

  6. Wombats Frame Order Links in the frames will replace the current frame with the linked frame unless specified otherwise. Frame 1 Wombats Frameset Frame 2

  7. Replaced Frame Frame 2 Wombats

  8. Nested Frames • Arranging both columns and rows require a nested frameset: <FRAMESET ROWS="45%,*"> <FRAMESET COLS="*,15%"> <FRAME SRC="pageA.html"> <FRAME SRC="pageB.html"> </FRAMESET> <FRAMESET COLS="15%,*"> <FRAME SRC="pageC.html"> <FRAME SRC="pageD.html"> </FRAMESET> </FRAMESET>

  9. Nested Frames 85% for first column 15% for second column 45% for top row 15% for first column 85% for second column

  10. Parameters • frameborder = “no” [Default=yes] • border=“0” [Default=“1” may have higher number”] • bordercolor=“white” • noresize [No values] • scrolling= “no” [auto, yes options] • marginwidth =“50” [value in pixels] • marginheight =“50” [value in pixels]

  11. Parameter examples <FRAMESET ROWS=“115,270” border=“0” framespacing=“0” bordercolor=“white” frameborder=“no”> <FRAME SRC=“title.html” Name=“top” scrolling=“no” noresize bordercolor=“#FFFFFF”>

More Related