I think what we'll do now is make a Framed Page from scratch.
Nothing fancy, just something like this.
Before we start, let me stress... keep it simple! A site with a bunch of frames and links pointing all over the place is going to be confusing to build and even more confusing to navigate. That said, let's go to it!
First we must think about what we want the end result to be. I think a good simple design would be a banner across the top, a directory window on the left, and the main window on the right. Let's make the Master Page first.
<HTML>
<FRAMESET>
</HTML>
<HEAD>
<TITLE>A Practice Page</TITLE>
</HEAD>
</FRAMESET>
Divide the screen horizontally.
<HTML>
<FRAMESET ROWS="83,*">
</HTML>
<HEAD>
<TITLE>A Practice Page</TITLE>
</HEAD>
</FRAMESET>
Next specify banner.html to go in the top frame (we will make that document in a couple minutes). Also throw in a <FRAMESET> tag pair because we are going to divide that bottom portion further.
<HTML>
<FRAMESET ROWS="83,*">
</HTML>
<HEAD>
<TITLE>A Practice Page</TITLE>
</HEAD>
<FRAME SRC="banner.html">
<FRAMESET>
</FRAMESET>
</FRAMESET>
You can run this now but you may get error messages because it's incomplete.
We will divide the bottom window into two sections. We will also specify that the left window contain directry.html and the right window contain home.html. Once again, we have not made these documents so you may still get an error message (or two) (or three).
<HTML>
<FRAMESET ROWS="83,*">
</HTML>
<HEAD>
<TITLE>A Practice Page</TITLE>
</HEAD>
<FRAME SRC="banner.html">
<FRAMESET COLS="20%,80%">
<FRAME SRC="directry.html">
<FRAME SRC="home.html">
</FRAMESET>
</FRAMESET>
Since we will have our directory on the left and pages will load into the righthand frame, we should name that frame. Its the only one that will have stuff loaded into it so its the only one we really need to name.
<HTML>
<FRAMESET ROWS="83,*">
</HTML>
<HEAD>
<TITLE>A Practice Page</TITLE>
</HEAD>
<FRAME SRC="banner.html">
<FRAMESET COLS="20%,80%">
<FRAME SRC="directry.html">
<FRAME SRC="home.html NAME="MAIN-WINDOW">
</FRAMESET>
</FRAMESET>
OK. We are done with this one... for now.
Lets make banner.html. Start with the following and save it.
<HTML>
<HEAD>
<TITLE>Practice Page- Banner</TITLE>
</HEAD>
<BODY BGCOLOR="#0000FF">
</BODY>
</HTML>
VIEW banner.html
VIEW Master Page
Pop in the image and <CENTER> it.
<HTML>
<HEAD>
<TITLE>Practice Page- Banner</TITLE>
</HEAD>
<BODY BGCOLOR="#0000FF">
<CENTER><IMG SRC="framz1.gif" WIDTH=500 HEIGHT=75></CENTER>
</BODY>
</HTML>
While I'm thinking about it, I just wanted to mention that if you look at the source of my documents to assist you in creating your documents you may find a few things that don't make sense or that may contradict what I say. That is because I have to make my pages jump through a few hoops so that the lessons work right when viewed. Make sense? If not, just don't look at the source of these pages unless you want to confuse yourself.
Alright... as you can see we have a problem. We have a scrollbar getting in the way and the image is not positioned in the window very well. Open your Master Page. Turn off the scroll bars and get rid of the margins.
<HTML>
<FRAMESET ROWS="83,*">
</HTML>
<HEAD>
<TITLE>A Practice Page</TITLE>
</HEAD>
<FRAME SRC="banner.html" SCROLLING=NO MARGINWIDTH=1 MARGINHEIGHT=1>
<FRAMESET COLS="20%,80%">
<FRAME SRC="directry.html">
<FRAME SRC="home.html NAME="MAIN-WINDOW">
</FRAMESET>
</FRAMESET>
Now let's make our Directory page. Start with the following and save it as directry.html.
<HTML>
<HEAD>
<TITLE>Practice Page- Directory</TITLE>
</HEAD>
<BODY BGCOLOR="#FFFFFF">
</BODY>
</HTML>
Give it a heading and write in the text of all the links. We'll add the link info in a minute.
<HTML>
<H3>Directory</H3>
Home<P>
Go here<BR>
or visit<BR>
<HEAD>
<TITLE>Practice Page- Directory</TITLE>
</HEAD>
<BODY BGCOLOR="#FFFFFF">
or there<P>
Yahoo<BR>
Netscape
</HTML>
Now add the link information.
<HTML>
<H3>Directory</H3>
<A HREF="home.html">Home</A><P>
<A HREF="here.html">Go here</A><BR>
or visit<BR>
</BODY>
<HEAD>
<TITLE>Practice Page- Directory</TITLE>
</HEAD>
<BODY BGCOLOR="#FFFFFF">
<A HREF="there.html">or there</A><P>
<A HREF="http://www.yahoo.com/">Yahoo</A><BR>
<A HREF="http://home.netscape.com/">Netscape</A>
</HTML>
Wasn't THAT fun! No I suppose it wasn't. Take 5. Stretch, go pee, get cup of coffee, scratch yer butt, whatever. Take a break. I am.
Introduction | Lesson 1 | Lesson 2 | Lesson 3 | Lesson 4 | Lesson 5 | Lesson 6 | Lesson 7 |
PROFESSIONAL WEB DESIGN |