• Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint

Targeting Frames

Before we can call our framed website complete, we'll want to add links to the navigation menu. Earlier, I mentioned that frames are unusual in that navigation menus can link to content that opens in other frames. What this means is that your navigation menu can remain static and doesn't have to load every time—only the content being linked loads every time in an autonomous frame. This is possible because of targets. In Chapter 3, “Building a Web Page,” we discussed four targets: _blank, _parent, _self, and _top. When working with frames, however, frame names can also become targets. You can create a hyperlink in the Nav frame that opens home.htm in the Content frame. To see this in action, let's create a simple link for the one page we have complete: home.htm:

1.
Highlight the Home text in the Nav frame. This text will become our hyperlink.

2.
Use the point-to-file icon located next to the Link text box in the Properties Inspector to point to the home.htm file located in the Files panel.

3.
Now we must set the target. To do that, select the Content option from the Target menu as shown in Figure 8.17. This option sets the Content frame as the target in which the home.htm file will open.

Figure 8.17. Select the Content option from the Target menu in the Properties Inspector.


4.
Had we not set the Content target, the browser would default to _self. What this means is that when the Home link was clicked, the home.htm file would open in the Nav frame—not exactly the effect we're going for. To finish off the link, apply a style to it by selecting the link option from the Style menu in the Properties Inspector.


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


  
  • Creative Edge
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint