Source Pages
When you create a website frames it is made up of two types of pages. There are frameset pages that control the structural appearance of the website and there are source pages that are directed into the frame windows of the frameset page.
Source pages are just plain ole HTML pages. They can contain anything from video presentations to just plain old information and pictures.
As you learned in the previous lesson, every frame window will eventually be defined by a frame tag. You can assign a source page to the frame using 2 methods.
You can use the src= attribute which is added directly to the desired frame tag. this method is used where the information or content inside of the window will remain the same. some examples would be the header frame of the page, the navigational frame and as this website uses, the footer frame window.
Using this website as an example, the header window, the links window and the footer window all contain source pages by those names. Those pages are assigned to those windows using the src= attribute.
Here's what the code looks like:
<frame src="header.html"> */ Header window*/
<frame src="links.html"> */Links window*/
<frame src="footer.html"> */footer window*/
The second way to direct a source page into a desired frame window is by using a link with a target attribute. In order to do this the destination window must have a name.
The name of a frame window is defined using a name attribute within the frame tag. Using this website as an example, the middle frame window in the second row is our target window. It is named simply , middle-frame. the code to name the frame is shown here:
<frame name="middle-frame">
The links in the left window use the target attribute to send the designated pages into the middle frame window. the code is shown here:
<a href="source-page.html" target="middle-frame">Source Page</a>
As you can see the code is just a plain ordinary link with a target attribute added.
Now because you don't want an empty window when the website opens you can also use the src attribute to specify a default page for the frame. In the code shown below the default page is index.html, but when someone clicks on a link in the left window the targeted source page will replace it.
<frame name="middle-frame" src="index.html">
Create a Website With Frames
What are frames?
The Frameset
Frames Source Pages
Frames Scrolling and Stuff
Noframes
Frames Redirection
The Frames Kit
Other Frames Resources
Contact Questions on How to Create a Website With Frames
Create a Website With Frames
What are frames?
Frameset Tag
Frames Kit
Noframes Tag
Frames and Redirection
Other Frames Resources
Frames Scrolling and other Attributes
Frames and Source Pages
Contact Questions on How to Create a Website With Frames
Copyright © 2008
Net Success 2000 Plus Inc
Somerset, KY, USA