Controlling Loop speed for animation

Giganews Newsgroups
Subject: Controlling Loop speed for animation
Posted by:  M Katz (compuk…@videotron.ca)
Date: Sun, 13 Jul 2003

Hi,

I'm using the following to allow dynamic resixing of an image (when the usre
presses down on a button):

function widthup() {
  image.width = image.width + 1;
  width.innerText = image.width;
  if(x==1) {
      setTimeout('widthup()',0);
  }
}

even when the 'setTimout' is at zero it goes pretty slowly. Any way to have
something faster?

Replies