Salut à tous.
Le script ci dessous est compatible internet explorer, mais comment le rendre compatible avec mozilla firefox?
< 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;
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 -->