JavaScript Tip of the Week for May 27, 1996: The Infamous 3.0 (Netscape Navigator) | Source Code | WebReference

JavaScript Tip of the Week for May 27, 1996: The Infamous 3.0 (Netscape Navigator) | Source Code

JavaScript Tip of the Weekfor May 27, 1996: Source Code: The Infamous 3.0 (Netscape Navigator)

Jump to source of:


Source code for The Amazing Dynamic Image:
/* This code is Copyright (c) 1996 Nick Heinle and Athenia Associates, 
 * all rights reserved. In order to receive the right to license this 
 * code for use on your site the original code must be copied from the
 * Web site webreference.com/javascript/. License is granted to user to 
 * reuse this code on their own Web site if and only if this entire copyright
 * notice is included. Code written by Nick Heinle of webreference.com.
 */
which_one = 0; 
function change() 
        {
                if (which_one == 0) 
                {               
                document.images[1].src = "fade.gif";
                which_one = 1;
                }
                else
                {
                document.images[1].src = "../../menus/jtotw.gif";
                which_one = 0;
                }
        }



Source code for How to Create Animations Using JavaScript:
/* This code is Copyright (c) 1996 Nick Heinle and Athenia Associates, 
 * all rights reserved. In order to receive the right to license this 
 * code for use on your site the original code must be copied from the
 * Web site webreference.com/javascript/. License is granted to user to 
 * reuse this code on their own Web site if and only if this entire copyright
 * notice is included. Code written by Nick Heinle of webreference.com.
 */
delay = 100;
imgNumber = 0;
totalimgNumber = 8;
anim = new Array();
for (i = 0; i = totalimgNumber) imgNumber = 0;
}
                
function animate() {
Switch();
setTimeout("animate()", delay);
}
function slow() {
delay+=10;
if(delay > 4000) delay = 4000;
}
        
function fast() {
delay-=10;
if(delay