Advertisement
Guest User

Untitled

a guest
Jan 16th, 2018
101
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.64 KB | None | 0 0
  1. <html>
  2. <head>
  3. <title>DiaShow</title>
  4.  
  5. <script language="JavaScript">
  6. <!--
  7. var album=new Array("bild1.jpg","bild2.jpg", "bild3.jpg", "bild4.jpg");
  8. i=0;
  9. function diashow() {
  10. if (i>=3) { i=0 ;
  11. }
  12.  
  13.  
  14.  
  15.  
  16. document.images[0].src=album[Math.floor((Math.random() * 3) + 0)] ;
  17. document.images[1].src=album[Math.floor((Math.random() * 3) + 0)] ;
  18. i++;
  19.  
  20. window.setTimeout("diashow()",1000); //Funktion neu aufrufen nach 1sec
  21.  
  22.  
  23. }
  24. //-->
  25. </script>
  26. </head>
  27. <body onLoad="diashow()">
  28.  
  29. <img src="bild2.jpg" alt="" border="0" width="670" height="743">
  30. <img src="bild4.jpg" alt="" border="0" width="434" height="470">
  31.  
  32. </body>
  33. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement