Re: Animation with Javascript

by "robert" <robert(at)diva.nl>

 Date:  Thu, 2 Jul 1998 17:21:20 +0200
 To:  "Efrat Sheffy" <esheffy(at)inter.net.il>,
<hwg-graphics(at)hwg.org>
  todo: View Thread, Original
Try this:

This goes in the head;

<script language="JavaScript">
<!--begin
var counter=1;
function rollPics(){
document.go.src=counter+".jpg";
counter++;
if(counter>3){
counter=1
}
}
//end-->
</script>


put something like this in the body of the document;

<center>
<img name="go" src="a.jpg" onLoad="setTimeout('rollPics()',1000)">
</center>

-------------------------------------------
-------------------------------------------


greetinx,

Robert Lariccia
 //:)T=l

-----Original Message-----
From: Efrat Sheffy <esheffy(at)inter.net.il>
To: hwg-graphics(at)hwg.org <hwg-graphics(at)hwg.org>
Date: Thursday, July 02, 1998 4:50 PM
Subject: Animation with Javascript


>Hello,
>
>I'm looking for a way to create an animation graphic with several jpg
>pictures.
>Regular gif animation will not work, as it destroy the quality of my
>pictures.
>
>I thought javascript can do the trick, but I couldn't find any
>javascript that will do, I would really appreciate it if someone can
>send me a script or another idea on how to approach the problem.
>
>As I'm subscribe to the digest list, and I'm not sure this post will be
>included in it, please also answer to my e-mail.
>
>thank you very much,
>Efrat Sheffy
>esheffy(at)inter.net.il
>

HWG: hwg-graphics mailing list archives, maintained by Webmasters @ IWA