<HTML>
<HEAD>
<TITLE> Examples of the AniS applet </TITLE>
</HEAD>
<BODY>
<P>
<center><h1> The Ani(mation)S applet </h1>
Page 4 - Using overlays </center>
<p>

<b>4a. Simple overlays.</b>  In order to use overlays, you
must provide four pieces of information:
<ul>
<li>The filename of the <i>background</i> image
<li>The labels for the overlaid fields
<li>The filename(s) for the overlay(s)
<li>The value of the color to use as <i>transparent</i>
</ul>
In our example, we will use the previously shown images as the
overlays, and will put a satellite image up as the
<i>background</i>.  The HTML for the applet looks like this:
<xmp>
<PARAM name="controls" value="overlay">
<PARAM name="overlay_labels" value="map,temperature,stream lines">
<PARAM name="overlay_filenames" value="TMAP.GIF, TSFC1.GIF, TSTR1.GIF">
<PARAM name="filenames" value="TIR1.GIF">
<PARAM name=transparency value="x00000000">
</xmp>

<APPLET code="AniS.class" width=500 height=450>
<param name="controls" value="overlay">
<PARAM name="overlay_labels" value="temperature,streamlines,map">
<PARAM name="overlay_filenames" value="TSFC1.GIF, TSTR1.GIF, TMAP.GIF">
<PARAM name="filenames" value="TIR1.GIF">
<param name=transparency value="x00000000">
</APPLET>
<hr>
<p>

<b>4b. Now let's animate the background.</b>  You need only add more
filenames>
<xmp>
<PARAM name="filenames" value="TIR1.GIF, TIR2.GIF, TIR3.GIF, TIR4.GIF">
</xmp>

In this case, we will also specify that the first overlay is an
animation, but the second and third are not.  This is done
by using an ampersand between filenames that are to appear on
each frame:
<xmp>
<PARAM name="overlay_filenames" value="TSFC1.GIF & TSFC2.GIF
& TSFC3.GIF & TSFC4.GIF, TSTR1.GIF, TMAP.GIF">
</xmp>
Of course, we also should add some controls for the animation
(although this is not necessary):
<xmp>
<PARAM name="controls" value="startstop, overlay">
</xmp>

<APPLET code="AniS.class" width=500 height=480>
<PARAM name="controls" value="startstop, overlay">
<PARAM name="overlay_labels" value= "temperature,stream lines, map">
<PARAM name="overlay_filenames" value=" TSFC1.GIF & TSFC2.GIF
& TSFC3.GIF & TSFC4.GIF, TSTR1.GIF, TMAP.GIF">
<PARAM name="filenames" value="TIR1.GIF, TIR2.GIF , TIR3.GIF, TIR4.GIF">
<param name=transparency value="x00000000">
</APPLET>
<hr>
<p>

<a href="anist5.html"> Go to next page </a>
<p>
If you would like more information, or have questions or
suggestions, please contact <mailto:tomw@ssec.wisc.edu>Tom Whittaker

</BODY>
</HTML>
