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;
        }
    }
   

Osmar R. Zaïane, Copyright © 1996,1997 02/05/97 slide: 46/50 45 47