SHARE
TWEET

Untitled

a guest Nov 19th, 2019 76 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <!doctype html>
  2. <html>
  3. <head>
  4. <meta charset="utf-8">
  5. <title>JSLabThree</title>
  6.  
  7. </head>
  8.  
  9. <body>
  10.     <script>
  11.     window.onload = function(){
  12.         var image = document.getElementById("imgElement");
  13.         var imgArray = ["images/", "images/", "images/"];
  14.         var index = 0;
  15.         function slideShow() {
  16.             image.src = imgArray[index];
  17.             index++;
  18.             if(index >= imgArray.length){
  19.                 index = 0;
  20.             }
  21.         }
  22.         setInterval(slideShow, 2000);
  23.     }
  24.     </script>  
  25.     <img id = "images/" width= "400"; height = "400" name="image"/>
  26. </body>
  27. </html>
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top