Vai al contenuto
function displayImages() {
alert (1);
const imageContainer = document.getElementById('imageContainer');
const numberOfImages = 3;
imageContainer.innerHTML = ''; // Pulisce il contenitore delle immagini
for (let i = 0; i < numberOfImages; i++) {
const img = document.createElement('img');
img.src = 'https://viviappennino.com/wp-content/uploads/2024/07/icona_bike.png'; // Sostituisci con il URL della tua immagine
img.alt = ' ';
img.width = 50; // Imposta la larghezza dell'immagine, puoi modificare secondo le tue esigenze
img.height = 50; // Imposta l'altezza dell'immagine, puoi modificare secondo le tue esigenze
imageContainer.appendChild(img);
}
window.onload = displayImages;
}