ONLINEPROOFINGSERVICE.COM

website programming - www.onlineproofingservice.com

Menu


192 Part III: Advancing Your Site Comparing target options You have many options when you target links in a frameset. As shown in


the preceding section, "Setting links to a target frame," you can specify that a linked page open in another frame within your frameset. But in addition, you can set linked pages to open in the same frame as the page with the link, to open a completely new page with no frames, and even to open a second browser window and display the page without affecting the original framed design. Table 7-1 provides a list of target options and what they mean. You can find all these options in the Target drop-down list of the Properties inspector. The Target drop-down list in the Properties inspector is activated only when you select a linked image or section of text. There must be a link in the Link field of the Properties inspector before you can set a target. Table 7-1 Understanding Frame Target Options Target Name Action _blank Opens the linked document into a fresh new browser window. _parent Opens the linked document into the parent frameset of the page that has the link. (The parent is the frameset or frame that contains the frame with the link.) _self Opens the linked document in the same frame as the original link, replacing the current content of the frame. This is the default option and usually does not need to be specified. _top Opens the linked document into the outermost frameset, replacing the entire contents of the browser window. Changing Frame Properties As you get more sophisticated in using frames, you may want to further refine your frames by changing properties, which enables you to turn off frame borders, change the frame or border colors, limit scrolling, and so on. To access these options in Dreamweaver, choose Window?Frames, click inside the Frames panel in the area that corresponds to the frame that you want to change, and then use the Properties inspector to access the options I describe in the following four sections. Figure 7-8 shows the Properties inspector as it appears when you select a frameset in the Frames panel. Chapter 7: Framing Your Pages 193 If you dont see the margin height and width options, make sure that you click the expander arrow in the bottom-right corner of the Properties inspector. Clicking this arrow causes all available properties to display for the selected item. Changing frame borders I think the best thing that you can do with a frame border is to turn it off. You can turn the borders off for your site by choosing No from the Borders drop-down list in the Properties inspector for either the frameset or any of the individual frames in the frameset. Your other options include Yes, which forces the borders to be visible, and Default, which usually means Yes. In case of individual frames, however, the Default option inherits the settings for the parent frameset. You can make global border settings by using the Properties inspector and applying the settings to the frameset. To select the frameset so that its properties are visible in the inspector, click the border that encloses the frameset in the Frames panel. Figure 7-8 shows a frameset selected in the Frames panel and its corresponding properties displayed in the Properties inspector. Figure 7-8: The selected frames or framesets