hanz-hutz t´es vraiment trop con !
tient pour faire un juke box MP3 sur ton site (liste déroulante) :
_________________________________________________
<!-- DEBUT DU SCRIPT -->
<SCRIPT LANGUAGE=javascript>
titreMP3 = new Array;
cheminMP3 = new Array;
titreMP3[0] = "LE TITRE DE TON MP3";
cheminMP3[0] = "LE CHEMIN DE TON MP3";
titreMP3[1] = "LE 2EME TITRE DE TON MP3";
cheminMP3[1] = "LE 2EME CHEMIN DE TON MP3";
titreMP3[2] = "LE 3EME TITRE DE TON MP3";
cheminMP3[2] = "LE 3EME CHEMIN DE TON MP3";
function ChangeMp3(formulaire)
{
numero =
formulaire.ListeMP3.options[formulaire.ListeMP3.se
lectedIndex].value;
if(document.getElementById && document.all && numero ! = "")
{
document.getElementById("blocson").innerHTML = "<EMBED SRC=\""+cheminMP3[numero]+"\" AUTOSTART=TRUE WIDTH=1 HEIGHT=1>";
}
}
if(document.getElementById && document.all)
{
document.write("<FORM><SELECT NAME=ListeMP3 onChange=\"ChangeMp3(this.form)\">")
document.write("<OPTION VALUE=´´> Selectionnez un fond sonore\n");
for(i=0;i<cheminMP3.length;i++)
{
document.write("<OPTION VALUE=\""+i+"\"> "+titreMP3[i]+"\n");
}
document.write(´</SELECT></FORM><DIV ID=blocson></DIV>´)
}
</SCRIPT>
<!-- FIN DU SCRIPT -->
_________________________________________________
Je pense que tu comprendras comment completer ce sript pour ton site.
A+