Re: Animation with Javascript

by Noone Special <pfarabee(at)indy.net>

 Date:  Thu, 2 Jul 1998 11:04:43 -0500 (EST)
 To:  robert <robert(at)diva.nl>
 Cc:  Efrat Sheffy <esheffy(at)inter.net.il>, hwg-graphics(at)hwg.org
 In-Reply-To:  diva
  todo: View Thread, Original
DO NOT TRY THAT.. it will lock up your browser, and possibly your system

On Thu, 2 Jul 1998, robert wrote:

> Try this:
> <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>
> 

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

This page is part of a preserved archive of archives.hwg.org. The site is no longer active and its content is not maintained. For enquiries about this archive, write to archive(at)iwanet.org.