title: How to create image slideshow in html?
body: <p>I wanna make image slideshow on my web, here's my code</p>
  
  <pre><code>&lt;head&gt;
  &lt;script type="text/javascript"&gt;
      var image1 = new Image()
      image1.src = "images/pentagg.jpg"
      var image2 = new Image()
      image2.src = "images/promo.jpg"
  &lt;/script&gt;
  &lt;/head&gt;
  &lt;body&gt;
  &lt;p&gt;&lt;img src="images/pentagg.jpg" width="500" height="300" name="slide" /&gt;&lt;/p&gt;
      &lt;script type="text/javascript"&gt;
              function slideit()
              {
                  var step=1;
                  document.images.slide.src = eval("image"+step+".src")
                  if(step&lt;2)
                      step++
                  else
                      step=1
                  setTimeout("slideit()",2500)
              }
              slideit()
      &lt;/script&gt;
  &lt;/body&gt;
  </code></pre>
  
  <p>Why it's not working? I've put image I want in images folder</p>