Code for a Frame-Based Site

index.html

<HTML>
<HEAD>
<TITLE> Welcome to my Web site! </TITLE>
</HEAD>

<FRAMESET FRAMEBORDER=0 COLS="150,*">
  <FRAME NAME="menu" NORESIZE SRC="mainmenu.html">
  <FRAME NAME="main" SRC="welcome.html">
</FRAMESET>

<NOFRAMES>
<H1>Welcome!</H1> <P>This site was designed to use frames to provide a menu bar to ease navigation; however, your browser does not support frames. Click <A HREF="welcome.html">here</A> to go to the main page of our site, where you can use the alternative links we have provided to get around the site.
</NOFRAMES>

</HTML>

mainmenu.html

<HTML>
<HEAD>
<BASE TARGET="main">
</HEAD>
<BODY BGCOLOR="DarkSlateBlue" BACKGROUND="menuback.gif" TEXT="white" LINK="LightSkyBlue" ALINK="Orange" VLINK="#FF9900">
<BASEFONT SIZE=2 FACE="Arial, Helvetica, sans-serif" SIZE=-1>

<H3>Main Menu</H3>
<HR NOSHADE>
<A HREF="welcome.html">Welcome</A>
<P><A HREF="products.html">Products</A>
<P><A HREF="order.html">Order</A>
<P><A HREF="support.html">Support</A>
<P><A HREF="info.html">Info</A>
<HR NOSHADE>

</BODY>
</HTML>

welcome.html

<HTML>
<HEAD>
<TITLE> Welcome! </TITLE>
</HEAD>
<BODY BGCOLOR="White" TEXT="Black" LINK="DarkSlateBlue" ALINK="Orange" VLINK="#FF9900">
<H1><FONT COLOR="DarkSlateBlue" FACE="Arial, Helvetica, sans-serif">WELCOME!</FONT></H1>
<HR>
<P>Welcome to this sample site. It is an example of what you can do with frames. It's really not that hard... Here are a few examples of links:

<P>A default link (no TARGET): <A HREF="navproducts.html">Products</A>

<P>A link to another site (<TT>TARGET="_top"</TT>): <A HREF="http://www.altavista.digital.com/" TARGET="_top">Alta Vista</A>

<P>A link to another site (<TT>TARGET="_blank"</TT>): <A HREF="http://www.yahoo.com/" TARGET="_blank">Yahoo</A>

<HR>
<CENTER>
<FONT SIZE=1>
[ <A HREF="navwelcome.html">Welcome</A> | <A
HREF="navproducts.html">Products</A> | <A
HREF="navorder.html">Order</A> | <A
HREF="navsupport.html">Support</A> | <A
HREF="navinfo.html">Info</A> ]
</FONT>
</CENTER>
<HR>

</BODY>
</HTML>

etc.

Copyright © 1998 Sausage Software and Kevin Yank.
All Rights Reserved.