|
AnimatedImage()
AnimatedImage(img_name, ani_name)
img_name - the name of the animated image.
Must match an image in the document.
ani_name - the name of an animation defined
by AnimationFrames()
REQUIREMENTS
AnimationFrames(ani_name,
num_frames, ext);
<IMG SRC="images/ani_name/0.ext"
NAME="img_name">
This function attaches animation frames to an image. Once defined the
image in the document can be animated using any of the animation functions.
EXAMPLES
<HEAD>
<SCRIPT>
AnimationFrames("door_ani",
10, ".gif");
AnimatedImage("door1","door_ani");
AnimatedImage("door2","door_ani"):
AnimatedImage("door3","door_ani"):
</SCRIPT>
</HEAD>
<BODY>
<IMG SRC="images/door_ani/0.gif"
NAME="door1">
<IMG SRC="images/door_ani/0.gif"
NAME="door2">
<IMG SRC="images/door_ani/0.gif"
NAME="door3">
<P>
<A HREF="some_url"
onMouseOver="turn_on('door1')"
onMouseOut="turn_off('door1')>Some
Link Text for Door 1</A>
<A HREF="some_url"
onMouseOver="turn_on('door2')"
onMouseOut="turn_off('door2')>Some
Link Text for Door 2</A>
<A HREF="some_url"
onMouseOver="turn_on('door3')"
onMouseOut="turn_off('door3')>Some
Link Text for Door 3</A>
</BODY>
<<Index>>
|