title: How to repeat this code
body: <p>so i have this code that shows 2 images and a nice slide effect.
  But after showing both images its stops.
  How ever i want it to repeat, so from 1-2-1-2 like that.</p>
  
  <p>I read something about this:</p>
  
  <pre><code>    boolean exitLoop = false;
  while (!exitLoop) { 
      // insert code here
  }
  </code></pre>
  
  <p>But it wont work for me.. Atleast i dont really know how to add it.
  Can someone make my code repeat? Here is my code:</p>
  
  <pre><code>    &lt;!doctype html&gt;
  &lt;html&gt;
  &lt;head&gt;
  
      &lt;script type="text/javascript"&gt;
  
      var slideimages = new Array() ;
      slideimages[0] = new Image() ;
      slideimages[0].src = "Slide1.JPG"; 
      slideimages[1] = new Image() ;
      slideimages[1].src = "Slide2.JPG";
  
      &lt;/script&gt;
  &lt;/head&gt;
  &lt;body&gt;
  &lt;div id="slidr-img" style="dislay: block"&gt;
  &lt;!--    &lt;img data-slidr="one" src="Slide1.JPG" id="slide" /&gt;--&gt;
          &lt;img data-slidr="one" src="Slide1.JPG" /&gt;
  &lt;img data-slidr="two" src="Slide2.JPG" /&gt;
  &lt;/div&gt; 
  
  &lt;script src="slidr.min.js"&gt;&lt;/script&gt;
  &lt;script&gt;
  
  slidr.create('slidr-img', { 
      transition: 'cube',
      controls: 'none'
  }).auto(1000);
  
  &lt;/script&gt;    
  
  &lt;script type="text/javascript"&gt;
  &lt;/script&gt;
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <hr>
  
  <p>Thanks already!
  Kind regards, Raul.</p>