590 likes | 787 Vues
DREAMWEAVER MX 2004. Chapter 5. Working with Frames. Performance Objectives. Create framesets and frames. Add frames to framesets. Open documents in a frame. Save, delete, and select framesets and frames. Use the Frames panel.
E N D
DREAMWEAVER MX 2004 Chapter 5 Working with Frames
Performance Objectives • Create framesets and frames. • Add frames to framesets. • Open documents in a frame. • Save, delete, and select framesets and frames. • Use the Frames panel. • Use the Frameset Property inspector to modify frameset properties.
Performance Objectives…/2 • Use the Frame Property inspector to modify frame properties. • Use links to change frame content. • Create and modify navigation bars. • Create accessible frames with frame titles and noframes content.
Understanding Frames • In appearance, frames are like tables. • Frames are used to create page regions that remain static while other page region content varies. • A single Web page can display content from two or more HTML documents at a time. frames
Understanding Frames…/2 • Frame tags use a source attribute to locate an HTML file and open it in the frame. • A link on a document in one frame can be specified to open a new document in the same frame, another frame, or in a new browser window. links in left frame open documents in right frame
Understanding Framesets • An HTML document that controls frame layout and properties. • Uses frameset tags. • Contains a minimum of two frames. frameset
Designing Frame Layouts • Framesets should contain no more than three frames. • Predesigned framesets do not exceed three frames. • Excessive frames may: • make navigation difficult • squeeze the space available in the browser window • make it difficult to troubleshoot problems
A Popular Frameset Design • Links in the navigation frame open documents in the main frame. heading (banner) frame navigation frame main frame
Enabling Frame Borders • Makes frame borders visible in the Document window. frame borders
Enabling Frame Borders…/2 click View Options button point to Visual Aids make sure a check mark appears to the left of Frame Borders
Creating Framesets and Frames • A new frameset is designed with a document open in the Document window. click Modify point to Frameset click one of the submenu commands
Adding Frames to a Frameset • Frames can be added to a frameset by splitting existing frames. • Existing frames can be split by using Menu bar commands, or by dragging frame borders.
Splitting Frames Using the Modify Command click Modify point to Frameset click one of the submenu commands
Splitting Frames Using the Insert Command • This creates a single frame in the desired direction, calculated from the insertion point. click Insert point to HTML point to Frames click an option
Splitting Frames by Dragging direction selection handle new frame border frame border during move process
Opening Documents in a Frame • Position the insertion point in the desired frame. click File click Open in Frame
Opening Documents in a Frame…/2 • This opens the Select HTML File dialog box, which can be used to locate and select an HTML file.
Changing Frame Document Background Color click Modify click Page Properties click Appearance click the Background color color box select a color from the Color Picker
Saving Framesets and Frames • Framesets and frame documents must be saved before they can be previewed. • Framesets and frames can be selected and saved individually. options available in the File menu when a frame is selected options available in the File menu when a frameset is selected
Deleting Framesets and Frames • Frames can be deleted by dragging them out of the Document window or by dragging them to a frame border. • Closing a frameset without saving deletes the frameset. • To delete a saved frameset, delete the file in the Files panel.
Using the Insert Bar to Create Predefined Framesets click the Frames button down-pointing arrow on the Insert bar (Layout menu item or tab) click a predefined frameset command
Using the Insert Menu to Create Predefined Framesets click Insert point to HTML point to Frames click one of the frameset options
Using the File Menu to Create Predefined Framesets click File click New click Framesets outline appears in Preview section
Selecting Framesets and Frames • Select a frameset or frame to change the properties using the Frameset or Frame Property inspector. • Note that positioning the insertion point inside a frame selects the document in a frame, not the frame itself. • Framesets can be selected in a number of different ways. • Using the Frames panel is probably the easiest method.
Opening the Frames Panel click Window click Frames
Using the Frames Panel • The Frames panel shows the structure of the frameset and the frames and nested framesets in contains in outline form. • The name of each frame appears in the center of each frame. frame names
Selecting Framesets click the outside border in the Frames panel OR click one of the frames in the Frames panel and then select the frameset tag in the Tag selector Frameset Property inspector
Selecting Frames click inside a frame in the Frames panel OR hold down the Alt key, and click inside a frame in the Document window Frame Property inspector
Using the Frameset Property Inspector specify whether or not frames will appear with three-dimensional borders specify a border width in pixels
Using the Frameset Property Inspector…/2 click the color box to use the Color Picker Eyedropper to select a color from the palette type a hexadecimal color value OR displays Column or Row depending on whether a column or row is selected in the RowCol Selection area
Using the Frameset Property Inspector…/3 tells the browser how much row height or column width to allocate choose between Pixels, Percent, and Relative
Using the Frame Property Inspector when a link is made to a frame, the target frame is identified by its frame name contains the path to a file that will appear in the selected frame a file path can be placed in the text box by using the Point to File or Browse for File buttons
Using the Frame Property Inspector…/2 specifies whether or not the current frame will display a border frame border color overrides a frameset border color
Using the Frame Property Inspector…/3 specifies whether or not a user can resize a frame in a browser specifies whether or not scroll bars appear in a frame entering a pixel value creates margin space inside the frame
Using Links to Change Frame Content • A link in one frame can be used to change the content of another frame. • Links are created using the Property inspector. • The Target text box drop-down list includes frame names in addition to normal target options.
Creating Navigation Bars • Navigation bars are a slightly more complex version of image rollovers. • They can be created and inserted horizontally or vertically. horizontal navigation bar
Creating Navigation Bars…/2 • Navigation bars are composed of a series of images. • Each navigation bar element is composed of up to four different images. • Each image is used to create an element display state.
Creating Navigation Bars…/3 • There are four navigation bar element states. up (state on loading) over (state when pointer hovers over button) down (state after element is clicked) over while down (state when pointer hovers over clicked element)
Creating Navigation Bars…/4 click the Images button down-pointing arrow click Navigation Bar OR click Insert point to Image Objects click Navigation Bar
Creating Navigation Bars…/5 • The Insert Navigation Bar dialog box opens. • Select images and desired properties.
Modifying Navigation Bars click Modify click Navigation Bar
Creating Accessible Frames with Frame Titles • Frame titles will help listeners identify the location and meaning of the content. • With the Frames check box option selected on the Accessibility Preferences page, a Frame Tag Accessibility Attributes dialog box will appear when creating predefined framesets. enter a frame title for each frame
Creating Accessible Frames with Frame Titles…/2 • When creating a new frameset from scratch, the dialog box does not appear. • Frame titles can be created by switching to Code view and typing title="Frame Title" just before the closing frame angle bracket. frame title
Creating Accessible Frames with Noframes Content • Each frameset page contains a noframes area that can be used to place information describing the content of the frames. • Text entered in noframes view is contained between the two noframes tags. noframes tags
Creating Accessible Frames with Noframes Content…/2 click Modify point to Frameset click Edit NoFrames Content
COMMANDS REVIEW How do you create a frameset? click Modify point to Frameset
COMMANDS REVIEW…/2 How do you create a predefined frameset? click Insert point to HTML point to Frames OR click File click New
COMMANDS REVIEW…/3 How do you create noframes content? click Modify point to Frameset click Edit NoFrames Content