Functions |
|
animate_to() animate_upto() animate_downto()DEFINITION
animate_to(frame_no, img_name); frame_no - The target frame number of the
animation. REQUIREMENTSThe following JavaScript AnimationFrames(ani_name,
num_frames, ext); The following HTML <IMG SRC="images/ani_name/0.ext"
NAME="img_name">
DESCRIPTIONThese functions animate the image img_name to a particular frame. The function animate_upto() runs the animation from the current frame UP (forward) to the target frame. The function animate_downto() runs the animation from the current frame DOWN (backwards) to the selected frame. The function animate_to() calculates the shortest number of frames (up or down) bewteen the current frame and the target frame and runs the animation up or down to reach that frame. NOTE: If you use animate_upto() or animate_downto() and request a frame that does not exists (e.g. -1 or frame 100 of a 32 frame animation) then the animation will run continuously. The Animated Globe interface uses these functions. EXAMPLE <HEAD> <BODY> <A HREF="some_url" <A HREF="some_url" <IMG SRC="images/globe/0.jpg" NAME="globe"> </BODY> <<Index>> |