The Ani(mation)S applet
Page 8 - Using file_of_filenames
8. Reading the names of your image files from another file.
This example is identical to second part of example #4 except that
the image filenames are all taken from a "file_of_filenames", and
we force the map to be initially displayed.
Recall that in example #4, the file descriptors looked like:
For the example shown below, the only PARAMeter needed is:
The file fnamelist.txt contains:
#this is a comment
TIR1.GIF overlay = TSFC1.GIF, TSTR1.GIF, TMAP.GIF
#another comment -- note you must explicity define each file on each frame!
TIR2.GIF overlay= TSFC2.GIF, TSTR1.GIF, TMAP.GIF
TIR3.GIF overlay=TSFC3.GIF, TSTR1.GIF, TMAP.GIF
TIR4.GIF overlay =TSFC4.GIF, TSTR1.GIF, TMAP.GIF
(The spacing is shown only to illustrate the flexibility
available.)
To force the overlay basemap to be initially "on", we add the
"/on" parameter to the end of the overlay_labels tag:
And, let's make the overlays of temperature and streamlines "radio buttons", so that
only one of them may be "on" at once:
Finally, let's change the colors of the labels on the overlay selector checkboxes/radio
buttons by adding:
Here's the applet:
Go to the next example
AniS Home Page
If you would like more information, or have questions or
suggestions, please contact Tom
Whittaker