Frames

CS 297

Jan. 23, 1997

If you have questions regarding how to do something, call me over. Nothing needs to be handed-in, nor do you need to print anything. Answer any questions asked in the exercise (they're on the reverse side of this sheet).

You'll create a framed web page with three ``panes,'' pretty much the same as what's described in Chapter 17 of Simpson (So, open your book to that Chapter). One pane will be just an image and the other two will be HTML pages. A third HTML page will contain the frame information.

  1. Now's a good time to set the HTML source editor option. Open the Options menu and choose Editor Preferences. Click the General tab and press the Browse button to the right of HTML Source. Choose the C: drive, choose the Windows folder, and choose notepad.exe. Press Open and then press OK on the underlying window.

  2. Create a frames folder on your N: drive. You'll put all your practice frame files into this folder.

  3. Following the instructions on pp. 378--384. The main page doesn't need to have anything particular in it. The table of contents page should have a few links to other pages (choose a few of your favorite web sites). Use any fairly small (it needs to fit into its frame) image that you happen to like.

  4. Now it's time to create the frame page. From the Program Manager window, open the Main program group, then find and open Notepad. Use Save as to create the file frame.htm on your N: drive in your frames folder.

  5. Carefully follow the instructions on pp. 384--394. If you get stuck, call me.

  6. Try your framed page in the browser. Notice how the linked pages don't appear in the main window? It's time to fix that.

  7. Open your table of contents page in the editor.

  8. Move the insertion point to the beginning of the page, open the Insert menu and choose HTML tag. In the dialog box that pops up type this:
    <base target="Main">
    

  9. Save the page and try your framed page in the browser again. You may have to use the Reload button, but the page should work the way you'd expect now.

Questions

  1. What is a ledge?

  2. Using the browser, can you resize frames?

  3. As far as frames go, what is a target? What is the other kind of target we've seen?

  4. Does the Netscape editor provide WYSIWYG support for frames?



Thomas P. Kelliher
Thu Jan 23 09:22:32 EST 1997
Tom Kelliher