spacer

Webref WebRef   Sitemap · Experts · Tools · Services · Newsletters · About i.com

Developer News
Google Chrome Playing Catch-Up on Extensions
Open Solutions Alliance Gets New Leadership
Red Hat Spacewalk Expands Linux Management
JavaScript Tip of the Week for 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; i++) {
anim[i] = new Image (239, 390);
anim[i].src = 'wave' + (i + 1) + '.gif';
} 

function Switch() {                
document.waveanim.src = anim[imgNumber].src;
imgNumber++;
        if(imgNumber >= totalimgNumber) imgNumber = 0;
}
                
function animate() {
Switch();
setTimeout("animate()", delay);
}

function slow() {
delay+=10;
if(delay > 4000) delay = 4000;
}
        
function fast() {
delay-=10;
if(delay < 0) delay = 0;
}

internet.comearthweb.comDevx.commediabistro.comGraphics.com

Search:

Jupitermedia Corporation has two divisions: Jupiterimages and JupiterOnlineMedia

Jupitermedia Corporate Info

Legal Notices, Licensing, Reprints, Permissions, Privacy Policy.
Advertise | Newsletters | Tech Jobs | Shopping | E-mail Offers

webref The latest from WebReference.com Browse >
Popular JavaScript Framework Libraries: An Overview - Part 3 · Accessing Your MySQL Database from the Web with PHP · Working with the DOM Stylesheets Collection
Sitemap · Experts · Tools · Services · Email a Colleague · Contact FREE Newsletters 
 The latest from internet.com
MS Access and MySQL · Cisco AutoQoS: VoIP QoS for Mere Mortals · While VoIP Adoption Explodes in Enterprise, Carrier Spending Lags