1 / 10

Embedded Frames

Embedded Frames. This is a little tricky so pay attention!. Creating Embedded Frames. Here is an example of an embedded frame. Notice that the screen is divided into rows and columns. You must write an additional “Frame Definition” and EMBED it into your original “Frame Definition”.

tana-weeks
Download Presentation

Embedded 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. Embedded Frames This is a little tricky so pay attention!

  2. Creating Embedded Frames • Here is an example of an embedded frame. • Notice that the screen is divided into rows and columns. • You must write an additional “Frame Definition” and EMBED it into your original “Frame Definition”.

  3. How to Embed a Frame… • Using the layout to the right, we first have to decide how to divide the entire screen. • Is the whole browser window divided into two rows or into two columns? • Is it correct to say that the browser window is divided first into two rows and that the second row is divided into two columns -or-Is the browser window divided into two columns and the first column divided into two rows? • The correct answer is on the next slide….

  4. Embedded Frames cont. • The browser window is divided first into two rows and then the second row is divided into two columns. Row 1 Row 2

  5. Embedded Frames cont. • Now to write the code. • First I will write the simple code two divide the window into two rows. <FRAMESET Rows=“20%, 80%”> <FRAME SRC=“Page1.html” NAME=“top”><FRAME SRC=“Page2.html” NAME=“Bottom”></FRAMESET>

  6. Embedded Frames Cont. • Then I will write the code for the two columns. <FRAMESET Rows=“20%, 80%”> <FRAME SRC=“Page1.html” NAME=“top”><FRAME SRC=“Page2.html” NAME=“Bottom”></FRAMESET> <FRAMESET COLS=“20%, 80%”> <FRAME SRC=“Page2.html” NAME=“left”> <FRAME SRC=“Page3.html” NAME=“right”></FRAMESET> The one for Rows The one for Columns

  7. Embedded Frames Cont. • Now I need to embed the Columns into the second row. • First, I need to delete the <FRAME SRC> for the second row. <FRAMESET Rows=“20%, 80%”> <FRAME SRC=“Page1.html” NAME=“top”></FRAMESET> <FRAMESET COLS=“20%, 80%”> <FRAME SRC=“Page2.html” NAME=“left”> <FRAME SRC=“Page3.html” NAME=“right”></FRAMESET> This line has been deleted.

  8. Embedded Frames Cont. • Now I simply move my Frameset for the columns into the empty line that I just deleted. <FRAMESET Rows=“20%, 80%”> <FRAME SRC=“Page1.html” NAME=“top”> <FRAMESET COLS=“20%, 80%”> <FRAME SRC=“Page2.html” NAME=“left”> <FRAME SRC=“Page3.html” NAME=“right”> </FRAMESET> </FRAMESET> Here it is moved into place

  9. Embedded Frameset code…. • Notice the Frameset Embedded within the original Frameset This is the frame which divides the screen into ROWS. This is the “Embedded Frame” that divides the bottom row into 2 COLUMNS.

  10. Assignment… • Finish the Frames assignment number 5, 6 and 7. • Show the instructor the work when you are done.

More Related