Dynamic Image

JavaScript Tip of the Week           Disappear
    document.images[1].src = "fade.gif";
which_one = 0; 

    function change() 
    {
        if (which_one == 0) 
        {               
        document.images[1].src = "fade.gif";  <-- load fade.gif (animated GIF)
        which_one = 1;
        }
    
        else
        {
        document.images[1].src = "jtotw.gif"; <-- load golden_cup.gif (coffee cup)
        which_one = 0;
        }
    }
   
<A HREF = "JavaScript:change()">
<IMG HEIGHT = 38 WIDTH = 99 SRC = "disappear.gif" BORDER = 0 ALT="Disappear">
</A>

code is from Nick Heinle and Athenia Associates.
Osmar R. Zaïane, Copyright © 1996-2007 slide: 30 29 31