Inserting Pages into Frames


Inserting Pages into Frames

Now that you've got your frames set up, you'll need to create pages to fill every frame. These pages are normal Web pages in every way except that they contain just a part of what will appear in the overall window. To prepare the HomeCook. info example, it took four individual pages: masthead.html ( Figure 11.15 ), menu.html ( Figure 11.16 ), home.html ( Figure 11.17 ), and the frameset document.

Figure 11.15. This individual HTML page will be placed in the topFrame of the frameset.


Figure 11.16. This individual HTML page will be placed in the leftFrame of the frameset.


Figure 11.17. This individual HTML page will be placed in the mainFrame of the frameset.


To add a prepared page to a frame:

1.
Click anywhere in the frame.

2.
Choose File > Open in Frame.

The Select HTML File dialog appears.

3.
Browse to select the file you want to insert, then click OK (Choose).

4.
Repeat the steps to add files to other frames ( Figure 11.18 ).

Figure 11.18. The topFrame and the leftFrame have files inserted, but the mainFrame is still unfilled.


5.
When every frame has its opening file, choose File > Save Frameset.

The inserted files are now the Src documents for the various frames in the frameset.

For more about saving framesets, see "Saving Framesets and Frames."

Tip

  • Naming a "home" page is slightly different with framed sites. You'd normally name the home page index.html . But in a framed site, you need that file name for the frameset . With a framed site, think of the initial set of files displayed when the frameset opens as Home. The page in Figure 11.17 is named home.html because it's in the opening content frame before any links are clicked.


To create a page in a frame:

1.
Click anywhere in the frame.

2.
Insert text and images with your normal Web content creation verve ( Figure 11.19 ). If you need a refresher, take a peek at Chapter 3, "Building Your First Page" or Chapter 4, "Adding Text to Your Pages."

Figure 11.19. You can type or insert material in a framed file while it is part of the frameset.


3.
Choose File > Save Frame.

For more about saving frames, see "Saving Framesets and Frames."




Macromedia Dreamweaver 8 for Windows & Macintosh Visual QuickStart Guide
Macromedia Dreamweaver 8 for Windows & Macintosh
ISBN: 0321350278
EAN: 2147483647
Year: 2005
Pages: 239

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net