Salve a tutti, mi sono appena iscritto al forum.. è da una settimana che sto sperimentando il javascript e lo trovo fanfastico!. Vorrei farvi vedere questa mia prova swap image; semba che giri.. ma mi piacerebbe che il mause quando passa sopra le immagini piccole cambiassero con un altra per poi quando si toglie il mause da sopra tornassero come prima.. è troppo per me! non ci riesco! credo che bisognerebbe usare onMouseOut ma non so bene che scriverci!
(le immagini e i suoni sono onLine quindi funziona a tutti ma bisogna essere collegati)
Grazie per il vostro aiuto. ..speriamo!
__________________________________________________ _____________

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">

<head>


<title>Prova swap image</title>


<meta http-equiv="content-type" content="text/html;charset=utf-8" />



<style>
#thumbs img
{
width: 80px;
height: 60px;
}
</style>


<script type="text/javascript">
function preloadImages() { //v3.0
var d=document; if(d.images){ if(!d.p) d.p=new Array();
var i,j=d.p.length,a=preloadImages.arguments; for(i=0; i<a.length; i++)
if (a[i].indexOf("#")!=0){ d.p[j]=new Image; d.p[j++].src=a[i];}}
}
function swap(a) {
document.getElementById('photo').src = a;
}

</script>

</head>

<body>
<bgsound src="#" id=music loop=1 autostart="true">
<body onLoad="preloadImages('http://i8.ebayimg.com/02/m/000/88/7a/77e8_19.JPG','http://digilander.libero.it/FlavioEgocentriko/Immagini/TEXT1018.jpg','http://i22.ebayimg.com/03/m/000/88/7a/77f5_19.JPG','http://i17.ebayimg.com/03/m/000/88/7a/77f3_19.JPG','http://i11.ebayimg.com/03/m/000/88/7a/77fb_19.JPG')">

<div>

</div>
<div id="thumbs">





</div>

</body>

</html>