<html>
<!-- DW6 -->
<head>
<title>Dreamweaver for WIT 2002\</title>
<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_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];}
}

function MM_timelinePlay(tmLnName, myID) { //v1.2
  //Copyright 1997, 2000 Macromedia, Inc. All rights reserved.
  var i,j,tmLn,props,keyFrm,sprite,numKeyFr,firstKeyFr,propNum,theObj,firstTime=false;
  if (document.MM_Time == null) MM_initTimelines(); //if *very* 1st time
  tmLn = document.MM_Time[tmLnName];
  if (myID == null) { myID = ++tmLn.ID; firstTime=true;}//if new call, incr ID
  if (myID == tmLn.ID) { //if Im newest
    setTimeout('MM_timelinePlay("'+tmLnName+'",'+myID+')',tmLn.delay);
    fNew = ++tmLn.curFrame;
    for (i=0; i<tmLn.length; i++) {
      sprite = tmLn[i];
      if (sprite.charAt(0) == 's') {
        if (sprite.obj) {
          numKeyFr = sprite.keyFrames.length; firstKeyFr = sprite.keyFrames[0];
          if (fNew >= firstKeyFr && fNew <= sprite.keyFrames[numKeyFr-1]) {//in range
            keyFrm=1;
            for (j=0; j<sprite.values.length; j++) {
              props = sprite.values[j]; 
              if (numKeyFr != props.length) {
                if (props.prop2 == null) sprite.obj[props.prop] = props[fNew-firstKeyFr];
                else        sprite.obj[props.prop2][props.prop] = props[fNew-firstKeyFr];
              } else {
                while (keyFrm<numKeyFr && fNew>=sprite.keyFrames[keyFrm]) keyFrm++;
                if (firstTime || fNew==sprite.keyFrames[keyFrm-1]) {
                  if (props.prop2 == null) sprite.obj[props.prop] = props[keyFrm-1];
                  else        sprite.obj[props.prop2][props.prop] = props[keyFrm-1];
        } } } } }
      } else if (sprite.charAt(0)=='b' && fNew == sprite.frame) eval(sprite.value);
      if (fNew > tmLn.lastFrame) tmLn.ID = 0;
  } }
}

function MM_findObj(n, d) { //v4.01
  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 && d.getElementById) x=d.getElementById(n); return x;
}

function MM_showHideLayers() { //v6.0
  var i,p,v,obj,args=MM_showHideLayers.arguments;
  for (i=0; i<(args.length-2); i+=3) if ((obj=MM_findObj(args[i]))!=null) { v=args[i+2];
    if (obj.style) { obj=obj.style; v=(v=='show')?'visible':(v=='hide')?'hidden':v; }
    obj.visibility=v; }
}

function MM_initTimelines() { //v4.0
    //MM_initTimelines() Copyright 1997 Macromedia, Inc. All rights reserved.
    var ns = navigator.appName == "Netscape";
    var ns4 = (ns && parseInt(navigator.appVersion) == 4);
    var ns5 = (ns && parseInt(navigator.appVersion) > 4);
    document.MM_Time = new Array(1);
    document.MM_Time[0] = new Array(1);
    document.MM_Time["Timeline1"] = document.MM_Time[0];
    document.MM_Time[0].MM_Name = "Timeline1";
    document.MM_Time[0].fps = 15;
    document.MM_Time[0][0] = new String("sprite");
    document.MM_Time[0][0].slot = 1;
    if (ns4)
        document.MM_Time[0][0].obj = document["Layer6"] ? document["Layer6"].document["Erin"] : document["Erin"];
    else if (ns5)
        document.MM_Time[0][0].obj = document.getElementById("Erin");
    else
        document.MM_Time[0][0].obj = document.all ? document.all["Erin"] : null;
    document.MM_Time[0][0].keyFrames = new Array(1, 22, 41);
    document.MM_Time[0][0].values = new Array(3);
    if (ns5)
        document.MM_Time[0][0].values[0] = new Array("0px", "31px", "61px", "92px", "123px", "153px", "184px", "215px", "245px", "276px", "306px", "337px", "368px", "399px", "429px", "460px", "491px", "522px", "552px", "583px", "614px", "645px", "611px", "576px", "542px", "507px", "473px", "438px", "404px", "369px", "335px", "300px", "265px", "231px", "196px", "161px", "127px", "92px", "57px", "23px", "-12px");
    else
        document.MM_Time[0][0].values[0] = new Array(0,31,61,92,123,153,184,215,245,276,306,337,368,399,429,460,491,522,552,583,614,645,611,576,542,507,473,438,404,369,335,300,265,231,196,161,127,92,57,23,-12);
    document.MM_Time[0][0].values[0].prop = "left";
    if (ns5)
        document.MM_Time[0][0].values[1] = new Array("0px", "1px", "2px", "3px", "5px", "6px", "7px", "8px", "9px", "10px", "11px", "12px", "14px", "15px", "16px", "17px", "18px", "19px", "21px", "22px", "23px", "25px", "25px", "24px", "24px", "23px", "22px", "21px", "21px", "20px", "19px", "18px", "17px", "17px", "16px", "15px", "14px", "13px", "13px", "12px", "11px");
    else
        document.MM_Time[0][0].values[1] = new Array(0,1,2,3,5,6,7,8,9,10,11,12,14,15,16,17,18,19,21,22,23,25,25,24,24,23,22,21,21,20,19,18,17,17,16,15,14,13,13,12,11);
    document.MM_Time[0][0].values[1].prop = "top";
    if (!ns4) {
        document.MM_Time[0][0].values[0].prop2 = "style";
        document.MM_Time[0][0].values[1].prop2 = "style";
    }
    if (ns5)
        document.MM_Time[0][0].values[2] = new Array("0px", "9px", "19px", "28px", "38px", "47px", "57px", "66px", "76px", "85px", "95px", "104px", "114px", "123px", "133px", "142px", "152px", "161px", "171px", "180px", "190px", "200px", "200px", "200px", "200px", "200px", "200px", "200px", "200px", "200px", "200px", "200px", "200px", "200px", "200px", "200px", "200px", "200px", "200px", "200px", "200px");
    else
        document.MM_Time[0][0].values[2] = new Array(0,9,19,28,38,47,57,66,76,85,95,104,114,123,133,142,152,161,171,180,190,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200);
    document.MM_Time[0][0].values[2].prop = "width";
    if (!ns4)
        document.MM_Time[0][0].values[2].prop2 = "style";
    document.MM_Time[0].lastFrame = 41;
    for (i=0; i<document.MM_Time.length; i++) {
        document.MM_Time[i].ID = null;
        document.MM_Time[i].curFrame = 0;
        document.MM_Time[i].delay = 1000/document.MM_Time[i].fps;
    }
}
//-->
</script>
</head>
<body bgcolor="#FFFFFF" text="#003300" onLoad="MM_preloadImages('../../../img/2002logo-alt-over.gif','img/rowan&amp;cheryl-smaller.jpg')" 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> Layers and Behaviors</h1></td>
  </tr>
  <tr> 
    <td colspan="2" valign="top" align="left"> <h6>&nbsp;</h6>
      <a name="top"></a> <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><font face="Arial, Helvetica, sans-serif"> 
                </font></h5>
            </div></td>
        </tr>
        <tr> 
          <td><div align="center"> 
              <h5><a href="frames.htm">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 H<font face="Arial, Helvetica, sans-serif">ome</font></a></h5>
            </div></td>
        </tr>
      </table>
      <h6>&nbsp;</h6>
      <p><a href="#goal">Goal for today</a></p>
      <p><a href="#layers">Layers</a></p>
      <h2><a name="goal"></a>Goal for today</h2>
      <p>Learn about some advanced features in Dreamweaver that allow you to build 
        in movement/animation and interactivity. Create several examples using 
        layers and behaviors. </p>
      <p><a href="#top">Back to the top.</a> </p>
      <h2><a name="layers"></a>Layers</h2>
      <blockquote> 
        <p>Warning: layers only work in browsers version 4.0 and later. Also, 
          the placement of layers is NOT an exact science. You may find that your 
          layers appear in a different location when you look at them in a browser 
          than where you placed them. </p>
        <p>To avoid any confusion, make sure the &quot;L&quot; and &quot;T&quot; 
          attributes of your layer are blank. &quot;L&quot; is left and &quot;T&quot; 
          is top. </p>
        <p>&nbsp;</p>
        <div id="Layer1" style="position:absolute; height:49px; z-index:1; background-color: #CCFF66; layer-background-color: #CCFF66; border: 1px none #000000;">This 
          is a layer. It has some text on it, and a background color.</div>
        <p>&nbsp;</p>
        <p>&nbsp;</p>
        <div id="Layer2" style="position:absolute; height:115px; z-index:2; background-color: #9966CC; layer-background-color: #9966CC; border: 1px none #000000"> 
          <p>&nbsp;</p>
          <p>This layer is overlapped by the green one.</p>
        </div>
        <div id="Layer3" style="position:absolute; width:200px; height:41px; z-index:3; background-color: #CCFFCC; layer-background-color: #CCFFCC; border: 1px none #000000">This 
          layer is overlapping the purple one.</div>
        <p>&nbsp;</p>
        <p>&nbsp;</p>
      </blockquote>
      <p>&nbsp;</p>
      <p>&nbsp;</p>
      <p>Layers are a way of placing layout elements at random positions within 
        a page. </p>
      <p>Layers can be assigned to timelines so you can do some simple animation. 
        (This uses &quot;Dynamic HTML,&quot; which is a kind of scripting language.) 
        Click <a href="javascript:;" onClick="MM_timelinePlay('Timeline1')">here</a> 
        to watch <font face="Arial, Helvetica, sans-serif">Thomas</font> flying 
        across the page and back.</p>
      <div id="Layer6" style="position:absolute; width:200px; height:115px; z-index:8"> 
        <div id="Erin" style="position:absolute; height:115px; z-index:5; left: 0px; top: 0px; width: 0px;"><img src="img/thomas.jpg" width="320" height="240"></div>
      </div>
      <p>&nbsp;</p>
      <p>&nbsp;</p>
      <p>&nbsp;</p>
      <p>&nbsp;</p>
      <p>&nbsp;</p>
      <p>&nbsp;</p>
      <p>&nbsp;</p>
      <p>To create a layer, click Insert|Layer. The layer will appear at the cursor, 
        on the left side of the window. You'll also see a <img src="img/dw53.jpg" width="23" height="27">icon, 
        which indicates a &quot;hidden element,&quot; or tag, in this case the 
        DIV tag that makes the layer.</p>
      <p>To move the layer around on the screen, you can click on the edge of 
        the layer, selecting it, and then click and drag the tab at the top left 
        of the layer: <img src="img/dw50.jpg" width="85" height="25"></p>
      <p>Notice what happens to the layer's properties when you move it around 
        on the screen:</p>
      <p><img src="img/dw51.jpg" width="533" height="94"></p>
      <p>The &quot;L&quot; and &quot;T&quot; fields are changed to reflect the 
        position of the layer, measured in pixels (px) from the left (L) and the 
        top (T) of the page. You can also change the position by typing numbers 
        directly into these fields. </p>
      <p>Notice also the other fields on the property inspector:</p>
      <p> Layers can be named. This is useful when creating a behavior (about 
        which, see <a href="#behaviors">below</a>). &quot;W&quot; and &quot;H&quot; 
        are the width and height of the layer measured in pixels. The &quot;Z-Index&quot; 
        is a way of controlling which layers appear on top and which below. The 
        higher the Z number, the closer the layer is to the &quot;top&quot;. All 
        the layers in a page have a different Z number. As you create the Layers, 
        each one will (generally) have the next highest Z-index. Vis stands for 
        visibility. This controls whether the layer is initially visible, invisible, 
        default (set the default for new layers you create by clicking Edit|Preferences|Layers), 
        or inherited (from it's &quot;parent&quot; if the layer is nested inside 
        another layer, or from the page's body, which is always visible).</p>
      <p><a href="#top">Back to the top.</a></p>
      <p>You can also add a background color or a background image, thus:</p>
      <div id="Layer4" style="position:absolute; width:200px; height:115px; z-index:4; background-image:   url(img/cac.JPG); layer-background-image:   url(img/cac.JPG); border: 1px none #000000"><font color="#FFFFFF">This 
        layer has a background image. Notice the image is cropped to fit the layer.</font></div>
      <p>&nbsp;</p>
      <p>&nbsp;</p>
      <p>&nbsp;</p>
      <p>&nbsp;</p>
      <p>Note that when you click INSIDE the layer, the properties inspector changes 
        to the normal text fomatting choices. These choices only affect the text 
        that is selected or that is typed immediately after the properties are 
        set.</p>
      <p>The &quot;Tag&quot; field should generally be left alone. There are several 
        choices here, but &quot;DIV&quot; is probably the tag that will work best 
        in most browsers.</p>
      <p>The &quot;Overflow&quot; field can be left blank, or set so that any 
        overflow (that goes beyond the set size of the layer) is hidden, visible, 
        with scroll bar always present, or with scroll bar only when necessary. 
        Note you cannot directly make a layer too small for its content. But layer 
        properties (including size) can be set using timelines, behaviors, or 
        scripts, and so the Overflow field might be helpful then. </p>
      <p> I can't figure out how the &quot;CLIP&quot; settings work and the manual 
        isn't helpful. </p>
      <p>You can see all the layers in the Layers palette by clicking Window|Layers:</p>
      <p align="center"><img src="img/dw52.jpg" width="215" height="197"></p>
      <p align="left">You can also use this palette to change the layers Z-index, 
        their names, or their visibility.</p>
      <p>To <b>animate layers</b>, you'll need to detach your page from any templates. 
        (Dynamic HTML writes code into the head area of the HTML page, and this 
        area is usually locked in a template.) Then click Window|Timelines.</p>
      <p>The Timelines palette works like digital video editing software. Time 
        proceeds from left to right. Each column represents a &quot;frame.&quot; 
        The frame rate can be set (FPS or Frames per second). The red or pink 
        thing represents the &quot;head&quot; of the player, and indicates the 
        current frame. The row labelled &quot;B&quot; is the &quot;Behaviors&quot; 
        Channel and allows you to set certain events. </p>
      <p>Each row represents a separate object. If you animate many layers, you'll 
        use many rows.</p>
      <p><a href="#top">Back to the top.</a></p>
      <h3><a name="return"></a>Activity</h3>
      <p>Now, create the layer you want to animate. For example, use this animated 
        gif image, and place it into a layer (with no background color or image). 
        Name the layer &quot;Earth.&quot;</p>
      <p><img src="img/erthspin.gif" width="100" height="100"></p>
      <p>Now select the Earth layer (the <img src="img/dw50.jpg" width="85" height="25"> 
        must appear) and drag it onto the timeline window. You'll see a blue bar 
        in layer one of the timeline window. At each end of the blue bar is a 
        circle. The circles represent &quot;key frames,&quot; that is, frames 
        that have been defined. (The final frame is automatically set, but can 
        be changed.) </p>
      <p>Select the key frame you want to edit. If you want to make the animation 
        longer, click and drag the final keyframe. Then, with the final keyframe 
        still selected, move the Earth layer to where you want it at the end of 
        the animation. (If you want it to return to the same place, leave it.)</p>
      <p>To add intermediate key frames, ctrl-click on the bar. A keyframe is 
        added. Now, with the new keyframe still selected, move the layer to where 
        you want it at that point. Dreamweaver automatically constructs the animation 
        to fill in intervening frames. To make a fluid circular movement, you'll 
        need to define multiple intermediate keyframes. Now, click &quot;Autoplay&quot; 
        and &quot;Loop.&quot;</p>
      <p>See <a href="earthanim.htm" target="_blank">this page</a> for the result.</p>
      <p>By the way, if you can do this, you can use Flash. The interfaces are 
        pretty similar. (Download a trial version of Flash from the <a href="http://www.macromedia.com">www.macromedia.com</a> 
        site.)</p>
      <p>You can adjust a variety of settings in the timelines, and you should 
        spend some time playing. (Right-clicking on the timeline gives you access 
        to a variety of menu choices.)</p>
      <p><a href="#top">Back to the top.</a></p>
      <h3><a name="behaviors"></a>Behaviors</h3>
      <p>NOTE: You cannot attach behaviors to your page if a template is applied 
        to it, because behaviors alter the &quot;head&quot; of the document and 
        this is (usually) a locked area of the page.</p>
      <p>Layers can be made visible or not, moved, and sized, using behaviors.</p>
      <p>Behaviors can be attached to links or to objects such as images and buttons. 
        You CANNOT attach a behavior to plain text. However, if you put &quot;javascript:;&quot; 
        into the &quot;link&quot; field of some text, that text can then initiate 
        a behavior without actually linking to anything..</p>
      <p>For example, if you hold the mouse over <font face="Arial, Helvetica, sans-serif"><a href="javascript:;" onMouseOver="MM_showHideLayers('cacrec','','hide')" onMouseOut="MM_showHideLayers('cacrec','','show')">here</a></font>, 
        you'll see the image below disappear. When you move the cursor off the 
        text, it will reappear. When you <font face="Arial, Helvetica, sans-serif">hold</font> 
        the cursor over <a href="javascript:;" onMouseOver="MM_swapImage('cacrec','','img/rowan&amp;cheryl-smaller.jpg',1)" onMouseOut="MM_swapImgRestore()">here 
        <font face="Arial, Helvetica, sans-serif">for a moment</font> </a>, the 
        image will swap to another one.</p>
      <div id="cacrec" style="position:absolute; width:200px; height:115px; z-index:6"><img src="img/cacro-smaller.jpg" width="250" height="188" name="cacrec"></div>
      <p>&nbsp;</p>
      <p>&nbsp;</p>
      <p>&nbsp;</p>
      <p>&nbsp;</p>
      <p>&nbsp; </p>
      <p>Behaviors are incredibly powerful, and we can't begin to cover them here. 
        But let's do a sample activity. </p>
      <p><a href="#top">Back to the top.</a></p>
      <h3>Activity</h3>
      <p>Download these two images to your Local Root Folder (or a subfolder):</p>
      <p><img src="img/cacro-smaller.jpg" width="250" height="188"><img src="img/rowancheryl-smaller.jpg" width="250" height="188"></p>
      <p>Now, create a new layer. Call it photos. Insert the cac&amp;ro-smaller.jpg 
        image into the layer. </p>
      <p>You can &quot;name&quot; an image and you must do so to swap it with 
        a behavior. Click on the image and put &quot;cacrec&quot; into the empty 
        field on the top left of the property inspector:</p>
      <p><img src="img/dw54.jpg" width="205" height="71"></p>
      <p>Now you're ready to define your behavior. Type some text to be the anchor 
        for the behavior, such as:</p>
      <p><font color="#993333">Point here to swap the image. </font></p>
      <p>Highlight the text and type &quot;javascript:;&quot; into the link field 
        (no quotation marks; that's a colon and then a semi-colon at the end of 
        the word). This is required in order<font face="Arial, Helvetica, sans-serif"> 
        to attach a behavior to the text.</font></p>
      <p>Click on Window|Behavior to show your behavior palette. To create a new 
        behavior, click the + button. A menu gives the choices available to you. 
        (This will vary depending on how you set your browser preferences for 
        each event.)</p>
      <p> Choose Swap Image. From the list of images, find &quot;cacrec in the 
        photos layer.&quot; Click it. Then browse to the other image, rowan&amp;cheryl-smaller.jpg. 
        Leave Preload images and Restore on mouse out checked. </p>
      <p>Now, save your file and preview it to see if it works.</p>
      <p>You can also assign behaviors to buttons, change the text that appears 
        in a layer, change the property of many items on the page, start and stop 
        animations, and all sorts of other things, most of which I've never tried..</p>
      <p>Experiment!</p>
      <p>Show your mentor what you've done.</p>
      <p><a href="#top">Back to the top.</a></p>
      <div align="right">
        <h4><font face="Arial, Helvetica, sans-serif"><a href="extending.htm">Next 
          Lesson.</a></font> </h4>
      </div>
      <p>&nbsp;</p>
      <p>&nbsp;</p></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, Graham School 
              of General Studies, 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 or 
              the Dean of the Graham School. All rights reserved. </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>
</html>
