<html><!-- #BeginTemplate "/Templates/2002.dwt" --><!-- DW6 -->
<head>
<!-- #BeginEditable "doctitle" --> 
<title>Dreamweaver for WIT 2002</title>
<!-- #EndEditable -->
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<script language="JavaScript">
<!--
function MM_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

function MM_findObj(n, d) { //v4.0
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && document.getElementById) x=document.getElementById(n); return x;
}

function MM_swapImage() { //v3.0
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}
//-->
</script>
</head>
<body bgcolor="#FFFFFF" text="#003300" onLoad="MM_preloadImages('../../../img/2002logo-alt-over.gif')" leftmargin="0" topmargin="20" link="#0033CC" vlink="#009933" alink="#66CC66" background="../../../img/background2002.jpg">
<font face="Arial, Helvetica, sans-serif"> </font> <font face="Arial, Helvetica, sans-serif"> 
<table width="100%" border="0" cellspacing="0" cellpadding="10">
  <tr>
    <td rowspan="3" width="163" valign="top" align="left"> 
      <p><a href="../../index.htm" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('Logo','','../../../img/2002logo-alt-over.gif',1)"><img name="Logo" border="0" src="../../../img/2002logo-alt.gif" width="150" height="150"></a></p>
      <table width="100%" border="0" cellspacing="10" cellpadding="0">
        <tr> 
          <td width="5">&nbsp;</td>
          <td><object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=4,0,2,0" width="100" height="22">
              <param name=movie value="/Templates/2002home.swf">
              <param name="wmode" value="transparent">
			  <param name=quality value=high>
              <param name="BASE" value="."><param name="BGCOLOR" value="#006600">
              
              <embed src="/Templates/2002home.swf" base="."  quality=high pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash" width="100" height="22" bgcolor="#006600">
              </embed> 
            </object></td>
        </tr>
        <tr> 
          <td width="5">&nbsp;</td>
          <td><object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=4,0,2,0" width="100" height="22">
              <param name=movie value="/Templates/2002about.swf">
              <param name="wmode" value="transparent">
			  <param name=quality value=high>
              <param name="BASE" value=".">
              <param name="BGCOLOR" value="#006600">
              <embed src="/Templates/2002about.swf" base="."  quality=high pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash" width="100" height="22" bgcolor="#006600">
              </embed> 
            </object></td>
        </tr>
        <tr> 
          <td width="5">&nbsp;</td>
          <td><object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=4,0,2,0" width="100" height="22">
              <param name=movie value="/Templates/2002homerooms.swf">
              <param name="wmode" value="transparent">
			  <param name=quality value=high>
              <param name="BASE" value=".">
              <param name="BGCOLOR" value="#006600">
              <embed src="/Templates/2002homerooms.swf" base="."  quality=high pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash" width="100" height="22" bgcolor="#006600">
              </embed> 
            </object></td>
        </tr>
        <tr> 
          <td width="5">&nbsp;</td>
          <td><object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=4,0,2,0" width="100" height="22">
              <param name=movie value="/Templates/2002curriculum.swf">
              <param name="wmode" value="transparent">
			  <param name=quality value=high>
              <param name="BASE" value=".">
              <param name="BGCOLOR" value="#006600">
              <embed src="/Templates/2002curriculum.swf" base="."  quality=high pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash" width="100" height="22" bgcolor="#006600">
              </embed> 
            </object></td>
        </tr>
        <tr> 
          <td width="5">&nbsp;</td>
          <td><object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=4,0,2,0" width="100" height="22">
              <param name=movie value="/Templates/2002software.swf">
              <param name="wmode" value="transparent">
			  <param name=quality value=high>
              <param name="BASE" value=".">
              <param name="BGCOLOR" value="#006600">
              <embed src="/Templates/2002software.swf" base="."  quality=high pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash" width="100" height="22" bgcolor="#006600">
              </embed> 
            </object></td>
        </tr>
        <tr> 
          <td width="5">&nbsp;</td>
          <td><object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=4,0,2,0" width="100" height="22">
              <param name=movie value="/Templates/2002mentor.swf">
              <param name="wmode" value="transparent">
			  <param name=quality value=high>
              <param name="BASE" value=".">
              <param name="BGCOLOR" value="#006600">
              <embed src="/Templates/2002mentor.swf" base="."  quality=high pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash" width="100" height="22" bgcolor="#006600">
              </embed> 
            </object></td>
        </tr>
        <tr> 
          <td width="5">&nbsp;</td>
          <td><object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=4,0,2,0" width="100" height="22">
              <param name=movie value="/Templates/2002projects.swf">
              <param name="wmode" value="transparent">
			  <param name=quality value=high>
              <param name="BASE" value=".">
              <param name="BGCOLOR" value="#006600">
              <embed src="/Templates/2002projects.swf" base="."  quality=high pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash" width="100" height="22" bgcolor="#006600">
              </embed> 
            </object></td>
        </tr>
        <tr> 
          <td width="5">&nbsp;</td>
          <td><object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=4,0,2,0" width="100" height="22">
              <param name=movie value="/Templates/2002feedback.swf">
              <param name="wmode" value="transparent">
			  <param name=quality value=high>
              <param name="BASE" value=".">
              <param name="BGCOLOR" value="#006600">
              <embed src="/Templates/2002feedback.swf" base="."  quality=high pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash" width="100" height="22" bgcolor="#006600">
              </embed> 
            </object></td>
        </tr>
        <tr> 
          <td width="5">&nbsp;</td>
          <td><object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=4,0,2,0" width="100" height="22">
              <param name=movie value="/Templates/2002search.swf">
              <param name="wmode" value="transparent">
			  <param name=quality value=high>
              <param name="BGCOLOR" value="#006600">
              <embed src="/Templates/2002search.swf" base=""  quality=high pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash" width="100" height="22" bgcolor="#006600">
              </embed> 
            </object></td>
        </tr>
      </table>
      <div align="center"></div>
          </td>
    <td valign="top" align="left" colspan="2" height="47"> 
      <h1><!-- #BeginEditable "title" --> Frames in Dreamweaver<!-- #EndEditable --></h1>
    </td>
  </tr>
  <tr> 
    <td colspan="2" valign="top" align="left"> <!-- #BeginEditable "body" --> 
      <h6>&nbsp;</h6>
      <table border="3" align="center" cellpadding="4" bordercolor="#009999" bgcolor="#99CC99">
        <tr> 
          <td><div align="center"> 
              <h5><a href="overview.htm">Overview</a></h5>
            </div></td>
          <td><div align="center"> 
              <h5><a href="howtogethelp.htm">How to get help</a></h5>
            </div></td>
          <td><div align="center"> 
              <h5><a href="sitesetup.htm">Site setup and maintenance</a></h5>
            </div></td>
          <td><div align="center"> 
              <h5><a href="textetc.htm">Text, layout, styles, links</a></h5>
            </div></td>
        </tr>
        <tr> 
          <td><div align="center"> 
              <h5><a href="images.htm">Images</a></h5>
            </div></td>
          <td><div align="center"> 
              <h5><a href="templates.htm">Templates</a></h5>
            </div></td>
          <td><div align="center"> 
              <h5><a href="libraries.htm">Libraries</a></h5>
            </div></td>
          <td><div align="center"> 
              <h5><a href="navbars.htm">Navigation bars</a>/<a href="altnavbar.htm"><br>
                Alternative version</a> </h5>
            </div></td>
        </tr>
        <tr> 
          <td><div align="center"> 
              <h5><a href="frames.htm" target="content">Frames</a> </h5>
            </div></td>
          <td><div align="center"> 
              <h5><a href="behaviors.htm">Layers and behaviors</a></h5>
            </div></td>
          <td><div align="center"> 
              <h5><a href="extending.htm">Extending Dreamweaver</a></h5>
            </div></td>
          <td><div align="center"> 
              <h5><a href="index.htm">Module Home</a></h5>
            </div></td>
        </tr>
      </table>
      <h6>&nbsp;</h6>
      <h2><a name="top"></a>Frames</h2>
      <blockquote> 
        <p>Several examples of frames:</p>
        <ul>
          <li><a href="http://cuip.uchicago.edu/%7Ecac/">Craig's home page</a></li>
          <li><a href="http://www.macromedia.com/software/dreamweaver/">Macromedia 
            Dreamweaver site</a> (uses frame for advertising and search box)</li>
          <li><a href="http://www.coosart.org/curriculum/CAM_FRAMESET_curriculum.htm">Coos 
            Art Museum site on how to use art in curriculum</a></li>
          <li><a href="http://www.schools.hants.org.uk/padnelljunior/index.htm">Padnell 
            Junior School (UK)</a></li>
        </ul>
        <p>Advantages: </p>
      </blockquote>
      <ul>
        <blockquote> 
          <p> relatively easy creation of menus<br>
            keeps user within site even when looking at external content</p>
        </blockquote>
      </ul>
      <blockquote> 
        <p>Disadvantages: </p>
      </blockquote>
      <ul>
        <blockquote> 
          <p>makes it hard for user to bookmark specific pages<br>
            takes up valuable screen real estate </p>
        </blockquote>
      </ul>
      <p><a href="#top">Back to the top.</a></p>
      <p><b>Key concept</b>: To create a framed page, you need at least three 
        documents</p>
      <ol>
        <li>a &quot;frameset&quot; page that actually sets up the screen and divides 
          it into two (or more) frames</li>
        <li>at least two documents that are the content for the frames on the 
          page when it first loads</li>
      </ol>
      <p>See this <a href="frames/frameset1.htm" target="_blank">working example</a>.</p>
      <p>To create, open a new page layout window. Then, make sure the Frames 
        palette is visible.Here's what you get:</p>
      <p><img src="img/dw35.jpg" width="400" height="359"></p>
      <blockquote> 
        <p>To create Frames, click Modify|Frameset| and the choose whether to 
          make your new frame from the left, right, top, or bottom of the page. 
          This is what you get if you choose Split Frame Left:</p>
        <p><img src="img/dw36.jpg" width="400" height="420"></p>
        <p>And this is what you get if you choose Split Frame Up:</p>
        <p><img src="img/dw37.jpg" width="400" height="416"></p>
        <p>&nbsp;</p>
        <p><strong>NOTE</strong>: You can use the Insert Bar (Frames category) 
          to create new frames on your page. Simply click and drag the icon that 
          represents the new frame that you want. </p>
        <p>&nbsp;</p>
      </blockquote>
      <p><a href="#top">Back to the top.</a></p>
      <blockquote> 
        <p>Once you've added a frame, the property inspector looks like this:</p>
        <p><img src="img/dw38.jpg" width="516" height="96"></p>
      </blockquote>
      <p>You use the Frame property inspector to adjust whether you want borders 
        to be visible or not (and the width if visible), the border color, and 
        the size of each row or column in the Frameset. (To select the specific 
        row or column, click the picture of the Frameset on the right-hand side 
        of the property inspector). </p>
      <p>Here's a blank page WITH borders visible and the same one with borders 
        NOT visible:</p>
      <p><img src="img/dw39.jpg" width="400" height="483"></p>
      <p><img src="img/dw40.jpg" width="400" height="476"><br>
        <br>
      </p>
      <p>You can always adjust the properties of the frameset by clicking on the 
        border of a frame. </p>
      <p>The properties of the frameset are different from the properties of each 
        frame. To access those properties, use the Frames palette, and click on 
        the appropriate frame in the schematic.This is what appears. </p>
      <p><img src="img/dw41.jpg" width="400" height="74"></p>
      <p>In this dialog box, you can control the file that is the source of the 
        frame content when the frame is first loaded, whether the borders of the 
        particular frame are visible, whether scroll bars are there automatically 
        (when needed) or always or never, whether the user can resize the frame 
        by clicking and dragging its border, and the margins. You can also give 
        the frame a &quot;name&quot; which is used as a target for links.</p>
      <p>For example, in <a href="http://cuip.uchicago.edu/%7Ecac/">my home page</a> 
        the left-hand frame is called &quot;Menu&quot; (for obvious reasons) and 
        the right-hand frame is called &quot;Start.&quot; Some of the links listed 
        in the menu open documents in the &quot;Start&quot; frame. This is done 
        by using the &quot;Target&quot; field in the properties inspector when 
        putting in a link. (If you don't name the target, the link will open in 
        the same frame as the link is in. This would result in wierd effects!)</p>
      <p>To shift between frames so you can edit their properties, use the Frames 
        palette. (If you click on the very edge border of the Frames palette, 
        you'll select the Frameset and can then edit the Frameset properties.</p>
      <p><a href="#top">Back to the top.</a></p>
      <h3>ACTIVITY 1A</h3>
      <p>Now, let's build a simple frameset.</p>
      <p>Start with a new layout window. Open the Frames palette. Choose Modify|Frameset||Split 
        Frame Left. Here's what you get:</p>
      <p><img src="img/dw36.jpg" width="400" height="420"></p>
      <p>Just to make this example more interesting, let's add a small frame at 
        the top of the right-hand frame. Make sure the cursor is in the right-hand 
        frame, and choose Modify|Frameset|Split Frame Down. Click and drag the 
        new border up to make something that looks like this:</p>
      <p><img src="img/dw42.jpg" width="400" height="433"></p>
      <p>Then, click and drag the vertical border (the one down the middle of 
        the page) to the left to make the screen look like this:</p>
      <p><img src="img/dw43.jpg" width="480" height="520"></p>
      <p>We'll use the left-hand frame for a menu, the top-right frame for a title 
        for the page, and the bottom-right frame for content. Now fill some things 
        in like this:</p>
      <p><img src="img/dw44.jpg" width="400" height="433"></p>
      <p>Now, click File|Save All Frames. Be careful at this point. You need to 
        give the frames names you'll remember. I suggest you create a new folder, 
        called Frameset, in your local root folder. Then, save the frameset as 
        frameset1.htm, the left frame as left.htm, the top-right frame as top.htm, 
        and the bottom-right as bottom.htm. (While the Save As... dialog box is 
        showing, you may notice a kind of highlighting around the specific frame 
        that is being saved just then.)</p>
      <p><a href="#top">Back to the top.</a></p>
      <h4>ACTIVITY 1B</h4>
      <p>Now let's name the frames. (Saving the documents is not the same as naming 
        the frames.) Click on each frame in the Frames palette and give them names: 
        Left, Top, and Bottom.</p>
      <p>Now, in the same folder, create two new documents, page1.htm and page2.htm. 
        These should be empty except for a label, &quot;Page 1&quot; and &quot;page 
        2&quot; These documents will be loaded into the page by the menu choices 
        in left.htm.</p>
      <p>Now add the links to the menu. Be sure to adjust the &quot;target&quot; 
        field so that all links (home, linked to bottom.htm, page 1 linked to 
        page1.htm, and page 2 linked to page2.htm) are targetted to the &quot;Bottom.&quot;</p>
      <p>NOTE: each page in the frameset has its own properties, and so can have 
        different titles, background colors, text colors, or images. I've added 
        some colors to mine so they are easier to distinguish.</p>
      <p>Your result should look <a href="frames/frameset1.htm">like this.</a></p>
      <p>OKAY, that's enough about frames for now.</p>
      <p><a href="#top">Back to the top.</a></p>
      <p>&nbsp;</p>
      <div align="right"> 
        <h4><font face="Arial, Helvetica, sans-serif"><a href="behaviors.htm">Next 
          Lesson.</a></font></h4>
      </div>
      <p>&nbsp;</p>
      <!-- #EndEditable --> </td>
  </tr>
  <tr> 
    <td colspan="2" valign="top" align="left"> 
      <table width="100%" border="3" cellspacing="3" cellpadding="5" bordercolor="#003300" align="left">
        <tr> 
          <td><h6 align="left"> <font color="#006600">The contents of the Web 
              Institute for Teachers website are Copyright 1999-2002, University 
              of Chicago. No one may print, copy, or otherwise reproduce these 
              materials without the express written permission of the Director 
              of the Web Institute for Teachers. </font></h6>
            <h6 align="left"><font color="#006600"> The current time is 
              <!--#config timefmt="%I:%M %p on %A %b %d, %Y"-->
              <!--#echo var="DATE_LOCAL"-->
              . This page was last modified on 
              <!--#config timefmt="%b %d, %Y" -->
              <!--#echo var="LAST_MODIFIED"-->
              . It has had 
              <!--#exec cgi="/cgi-bin/nmi/textcounter/witcounter.pl"-->
              . </font></h6>
            <h6><font color="#006600">Please use the <a href="/2002/feedback/index.htm">Feedback</a> 
              button to tell us how you like this page.</font></h6>

			  </td>
        </tr>
      </table>
      <h6>&nbsp;</h6>
    </td>
  </tr>
</table>
</font>
</body>
<!-- #EndTemplate --></html>
