thx ma come lo associo l'id all'immagine?

potresti fare un esempio a prova di nubbio?

posto il codice:

<html>
<head><title></title>

<script>
var immagini=new Array(
'1.gif',
'2.gif',
'3.gif'
);

function randomImage() {
var i=Math.floor(Math.random()*immagini.length);
document.getElementById('idimmagine').src=immagini[i];
}
</script>

<body onload="randomImage();">

[img][/img]

</body></html>

cosa manca?