Overview 1. Backgrounds 2. Downloads 3. Tables 4. Int. links |
Frames |
5. Frames 6. Image Maps 7. Transparency 8. Animations |
In this section you will learn how to use frames. Please click here to view the example web page you'll create. Within this example the main page is split into two frames. Frames are generally thought of as a difficult concept to understand. The code from this example is displayed below... <HTML> This code is now explained... <FRAMESET
BORDER=0 frameborder="0" cols="15%,*"> <FRAMESET SRC="left.htm"
NAME="left" SCROLLING=NO> <FRAMESET SRC="right.htm"
NAME="right" SCROLLING=YES> <NOFRAMES> So far we have set up the framework of the page now we will look at the content. Click here to see the page left.htm which is located in the left hand frame. The following code provides the link for the albums page. <a href="albums.htm" target="right">List of Albums</a> It is the same as a normal link but with a target. The name of the target in this example is right - this will display the page albums.htm in the frame named right. If this target had not been specified the default location would be the current frame (i.e. the left frame). Other common targets are... target="_top" - location of the new page is the whole browser. target="_blank" - location of the new page is a new window. target="_parent" - location of the new page is the parent frame. |