Alla fine sto andando di brutale html:
<script type="text/javascript" language="JavaScript">
// Type the number of images you are rotating.
NumberOfImagesToRotate = 3;
// Specify the first and last part of the image tag.
FirstPart = '<img src="images/stories/Kart/random/immagine';
LastPart = '.jpg" width="300" align="left" style="margin:10px;">';
function printImage() {
var r = Math.ceil(Math.random() * NumberOfImagesToRotate);
document.write(FirstPart + r + LastPart);
}
</script>
Però vorrei che le immagini cambiassero ogni tot secondi, cioè vorrei che ogni tot secondi venisse fatto un refresh dell'immagine, come si può fare?