Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <html>
- <head>
- <title>DiaShow</title>
- <script language="JavaScript">
- <!--
- var album=new Array("bild1.jpg","bild2.jpg", "bild3.jpg", "bild4.jpg");
- i=0;
- function diashow() {
- if (i>=3) { i=0 ;
- }
- document.images[0].src=album[Math.floor((Math.random() * 3) + 0)] ;
- document.images[1].src=album[Math.floor((Math.random() * 3) + 0)] ;
- i++;
- window.setTimeout("diashow()",1000); //Funktion neu aufrufen nach 1sec
- }
- //-->
- </script>
- </head>
- <body onLoad="diashow()">
- <img src="bild2.jpg" alt="" border="0" width="670" height="743">
- <img src="bild4.jpg" alt="" border="0" width="434" height="470">
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement