Bonjour, voila j´ai télécharger un script pour un jukebox mp3 que j´ai modifier pour qu´il marche sur Mozilla, comme sur IE.Mais la n´est pas le probleme je ne sais pas comment faire , mais est ce que quelqu´un pourrait m´ajouter deux bouton : Ecouter et Stopper a ce script svp ?
Merci d´avance
<SCRIPT LANGUAGE=javascript>
/*
Liste de MP3 à diffuser en fond sonore
SCRIPT EDITE SUR L´EDITEUR JAVASCRIPT
http://www.editeurjavascript.com
titreMP3 = new Array;
cheminMP3 = new Array;
titreMP3[0] = "xxx";
cheminMP3[0] = "xxx";
titreMP3[1] = "xxx";
cheminMP3[1] = "xxx";
titreMP3[2] = "xxx";
cheminMP3[2] = "xxx";
titreMP3[3] = "xxx";
cheminMP3[3] = "xxx";
function ChangeMp3(formulaire)
{
numero =
formulaire.ListeMP3.options[formulaire.ListeMP3.se
lectedIndex].value;
if(document.getElementById && numero != "")
{
document.getElementById("blocson").innerHTML = "<EMBED SRC=\""+cheminMP3[numero]+"\" AUTOSTART=TRUE WIDTH=1 HEIGHT=1>";
}
}
if(document.getElementById)
{
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 -->