Functions

turn_on() - turn_off()

DEFINITION

turn_on(img_name,ani_name);
turn_off(img_name,ani_name);

img_name - the name of an image/AnimatedImage() in an HTML document
ani_name - the name of an AnimationFrames() object

REQUIREMENTS

AnimationFrames(ani_name, num_frames, ext);
AnimatedImage(img_name, ani_name);

<IMG SRC="images/ani_name/0.ext" NAME="img_name">

DESCRIPTION

These functions behave almost the same as turn_on() and turn_of() except they change the AnimationFrames() that is used in the AnimatedImage(). They are most useful where you have a single image in the document and you want to display different animation in that image.

EXAMPLE

<HEAD>
    AnimationFrames("desc1", 5, ".jpg");
    AnimationFrames("desc2", 5, ".jpg");
    AnimationFrames("desc3", 5, ".jpg");
    AnimationFrames("desc3_out", 5, ".jpg");

    AnimatedImage("description", "desc1");
</HEAD>

<BODY>
    <A HREF="some_url"
        onMouseOver="turn_on('description','desc1')"
        onMouseOut="turn_off('description')>Some Link Text Link 1</A><br>

    <A HREF="some_url"
        onMouseOver="turn_on('description','desc2')"
        onMouseOut="turn_off('description')>Some Link Text for Link 2</A><br>

    <A HREF="some_url"
        onMouseOver="turn_on('description','desc3')"
        onMouseOut="turn_off('description', 'desc3_out')>Some Link Text for Link 3</A><br>

    <IMG SRC="images/desc1/0.jpg" NAME="description">

</BODY>

<<Index>>