|
Dreamweaver makes it relatively easy to use frames. You do not need to program framesets and frames by hand. Most of the frame properties can be set by clicking property boxes. We will create a document with frames. What Are Frames?Frames are separate windows that appear inside a web page. Each frame is made up of a separate HTML page. In addition to the individual HTML pages that make up the web page with frames, there is another HTML page that doesn't display. It is called the Frameset. Its purpose is to direct the display of the pages that make up the web page with frames. Even though the Frameset doesn't display, it is obviously very important to a web page that uses frames. Creating FramesActivity-------------------------------------------------------------------------------
Selecting Frames and Framesets, Adding TextSelecting a Frame To select a frame so that its properties can be modfied, press the Alt key and click inside the frame. A dotted line surrounds the inside of the frame that is selected. The HTML of that frame (page) is visible in the HTML inspector window. Selecting the Frameset To select the frameset, click on a frame border. The HTML of the frameset document is visible in the HTML inspector window. Activity--------------------------------------------------------------------------
Saving Frames and FramesetsRemember that the frameset document does not display information on the screen. It is the file that specifies the format of the frames that actually contain the data. Dreamweaver automates the process of creating a frameset.
Naming FramesTo be able to target documents into frames, it is important to give frames names. The name of a frame is different from the name of the HTML file. Every HTML file has a file name, but not every HTML page has a name associated with a frame.
It is always best to select a descriptive name for the frames you create.
Activity--------------------------------------------------------------------------
Using Links in a FrameOften the left frame is used as an index that remains visible, while the big frame changes content when one of the links in the index is clicked. This link shows an index frame on the left. Clicking one of the topics causes the main frame to load a new document. Dreamweaver can help with the details of "targeting" a document to a particular frame. Targeting is very important. If links inside framed documents are not targeted correctly, you might have the awkward situation where a large document is loaded into the small menu frame on the left side! Activity--------------------------------------------------------------------------
|