Listing

<img  name="slide" src="https://opta.com.pl/wp-content/uploads/2019/12/le02.jpg" 
  width="150" height="300"/>	
        
var i = 0;
	var path = new Array();
	path[0] = "https://opta.com.pl/wp-content/uploads/2019/12/le02.jpg";
	path[1] = "https://opta.com.pl/wp-content/uploads/2019/12/le03.jpg";
	path[2] = "https://opta.com.pl/wp-content/uploads/2019/12/le04.jpg";
	path[3] = "https://opta.com.pl/wp-content/uploads/2019/12/le05.jpg";
	path[4] = "https://opta.com.pl/wp-content/uploads/2019/12/le06.jpg";
	path[5] = "https://opta.com.pl/wp-content/uploads/2019/12/le07.jpg";
	path[6] = "https://opta.com.pl/wp-content/uploads/2019/12/le08.jpg";
	path[7] = "https://opta.com.pl/wp-content/uploads/2019/12/le09.jpg";
	path[8] = "https://opta.com.pl/wp-content/uploads/2019/12/le10.jpg";
	path[9] = "https://opta.com.pl/wp-content/uploads/2019/12/le11.jpg";
	path[10] = "https://opta.com.pl/wp-content/uploads/2019/12/le12.jpg";
	path[11] = "https://opta.com.pl/wp-content/uploads/2019/12/le13.jpg";
	path[12] = "https://opta.com.pl/wp-content/uploads/2019/12/le14.jpg";
	path[13] = "https://opta.com.pl/wp-content/uploads/2019/12/le15.jpg";
	path[14] = "https://opta.com.pl/wp-content/uploads/2019/12/le16.jpg";
	path[15] = "https://opta.com.pl/wp-content/uploads/2019/12/le17.jpg";
	path[16] = "https://opta.com.pl/wp-content/uploads/2019/12/le18.jpg";
	path[17] = "https://opta.com.pl/wp-content/uploads/2019/12/le19.jpg";
	path[18] = "https://opta.com.pl/wp-content/uploads/2019/12/le20.jpg";
	path[19] = "https://opta.com.pl/wp-content/uploads/2019/12/le21.jpg";
	path[20] = "https://opta.com.pl/wp-content/uploads/2019/12/le22.jpg";
	path[21] = "https://opta.com.pl/wp-content/uploads/2019/12/le23.jpg";
	path[22] = "https://opta.com.pl/wp-content/uploads/2019/12/le24.jpg";
	
	function swapImage() {
		document.slide.src = path[i];
		if (i < path.length - 1)
			i++;
		else
			i = 0;
		setTimeout("swapImage()", 120);
	}
	window.onload = swapImage;	
        

Dodaj komentarz

Twój adres email nie zostanie opublikowany. Pola, których wypełnienie jest wymagane, są oznaczone symbolem *