Flasher Archive

[Previous] [Next] - [Index] [Thread Index] - [Previous in Thread] [Next in Thread]


Subject: RE: FLASH: Not exactly flash but still "multimedia"
From: william myers
Date: Thu, 03 Dec 1998 23:05:55 +0000 (GMT)

Al,
I had the same problem, I needed to animate jpegs.
this works but I am not completely happy that the images are preloading
correctly. (maybe someone could take a look at this : )

<SCRIPT LANGUAGE = "JavaScript">


<!--

if (document.images) {

preLoad = new Image();
preLoad.src = "myImage1.jpeg";
preLoad.src = "myImage2.jpeg";
preLoad.src = "myImage3.jpeg";
preLoad.src = "myImage4.jpeg";
preLoad.src = "myImage5.jpeg";
preLoad.src = "myImage6.jpeg";
preLoad.src = "myImage7.jpeg";
preLoad.src = "myImage8.jpeg";




}




delay = 3000;
imgNumber = 0;
totalimgNumber = 8;
anim = new Array();

for (i = 0; i < totalimgNumber; i++) {
anim[i] = new Image (500, 390);
anim[i].src = 'myImage' + (i + 1) + '.jpeg';
}

function Switch() {
document.myImageanim.src = anim[imgNumber].src;
imgNumber++;
if(imgNumber >= totalimgNumber) imgNumber = 0;
}

function animate() {
Switch();
setTimeout("animate()", delay);
}


//-->


</SCRIPT>
</HEAD>
<BODY onLoad = "animate()">




//and then call the first image in an img tag and make sure you name it...



<img src="myImage1.jpeg lowsrc ="myImageLow.jpeg" name = "myImageanim">




you can set the delay and use as many images as you want, I used 8





---------------
bill

-----Original Message-----
From: Al Rosetti [alroseatwebsitepartners [dot] com (mailto:alroseatwebsitepartners [dot] com)]
Sent: Thursday, December 03, 1998 5:40 PM
To: flasheratshocker [dot] com
Subject: FLASH: Not exactly flash but still "multimedia"


Does anyone know where I could snag some JavaScript to animate Jpegs? Using
GIF's on my December cover is given me a PALETTE NIGHTMARE!!!!!

Thanks in advance,

Al Rosetti
http://www.websitepartners.com

p.s.
Plenty of inane Flash questions OTW.... I finally have some time to work on
my Flash site starting right about now. I'm sure you're all excited. <g>



------------------------------------------------------------------------
To UNSUBSCRIBE send: unsubscribe flasher in the body of an
email to list-manageratshocker [dot] com. Problems to: owneratshocker [dot] com
N.B. Email address must be the same as the one you used to subscribe.
For info on digest mode send: info flasher to list-manageratshocker [dot] com

------------------------------------------------------------------------
To UNSUBSCRIBE send: unsubscribe flasher in the body of an
email to list-manageratshocker [dot] com. Problems to: owneratshocker [dot] com
N.B. Email address must be the same as the one you used to subscribe.
For info on digest mode send: info flasher to list-manageratshocker [dot] com



[Previous] [Next] - [Index] [Thread Index] - [Next in Thread] [Previous in Thread]