title: JavaScript loop from 00000 to 000256
body: <p>I have files name <code>animation_00000.png</code> through to <code>animation_00256.png</code>. I thought I would be able to simple loop through and load them to screen like this, </p>
  
  <pre><code>var animation = $("&lt;img id='animtation' /&gt;");
  animation.prependTo(".stage");
  
  for(var i = 00000; i &lt; 00276; i++)
  {
      animation.attr("src", "img/animations/cat/Catwalk_"+i+".png");
  }
  </code></pre>
  
  <p>However this tries to load the image sources like this, </p>
  
  <p><code>Catwalk_0.png</code></p>
  
  <p>How can I make sure that all the zeroes are preserved in the count?</p>