Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

100
Views
simple image slide show not running

I'm working on putting a simple slide show on the homepage of a website I'm building for my coding class. I have this simple code, but it's not working. Can anyone help me figure out why it's not working? I can't figure it out. I've went over the code over and over again and using the debugger in VS, but I can't seem to find anything wrong with it. Thanks.

<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>slide show</title>
  <script>
    var i=0;

    var images =[];
    var time = 2000;

    images[0] ="pindex-1.jpg";
    images[1] ="pindex-2.jpg";
    images[2] ="pindex-3.jpg";
 

    function changeImg() {
      document.slide.src=images[i];

      if (i < images.lenghth -1) {
        i++;
      } else {
        i = 0;
      }

      setTimeout("changeImg()", time);

      }

      window.onload = changeImg;

  </script>
</head>
<body>
  <img name="slide" width="300" height="200">  
</body>
</html>
about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!