Salut
j'ai ce script ci dessous:
<html>
<head>
<SCRIPT LANGUAGE="JavaScript">
NavName = navigator.appName.substring(0,3);
NavVersion = navigator.appVersion.substring(0,1);
if (NavName != "Mic" || NavVersion>=4)
{
entree = new Date;
entree = entree.getTime();
}
function ZsortIe()
{
if (NavName != "Mic" || NavVersion>=4)
{
fin = new Date;
fin = fin.getTime();
secondes = (fin-entree)/1000;
window.status='Page chargée en ' + secondes + ' seconde(s).';
}
}
window.onload = ZsortIe;
</SCRIPT>
<SCRIPT LANGUAGE="JavaScript">
Today = new Date;
Heure = Today.getHours();
Min = Today.getMinutes();
Message = "Il est " + Heure + "h" + Min + "m";
</SCRIPT>
<title></title>
<meta http-equiv="content-type" content="text/html; charset=iso-8859-1" />
<meta name="description" content="description goes here" />
<meta name="keywords" content="keywords,goes,here" />
<link rel="stylesheet" href="style.css" type="text/css" />
<!--[if IE 6]>
<link rel="stylesheet" href="fix.css" type="text/css" />
<![endif]-->
</head>
<body>
<div id="header">
</div>
<div id="menu"><!-- DEBUT DU SCRIPT -->
<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] = "aucun son";
cheminMP3[0] = "http://discoboy.netrock.ca/site/sons/unholly.mp3";
titreMP3[1] = "Unholy Confessions- Avenged Sevenfold";
cheminMP3[1] = "http://discoboy.netrock.ca/site/sons/unholly.mp3";
titreMP3[2] = "distress - Mad caddies";
cheminMP3[2] = "http://discoboy.netrock.ca/site/sons/distress.mp3";
titreMP3[3] = "Liberez-nous des liberaux - Loco Locass";
cheminMP3[3] = "http://discoboy.netrock.ca/site/sons/liberaux.wma";
function ChangeMp3(formulaire)
{
numero = formulaire.ListeMP3.options[formulaire.ListeMP3.selectedIndex].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 -->
<DIV ALIGN = CENTER><SCRIPT LANGUAGE="JavaScript" SRC="ejs_menu_dyn_2.js"></SCRIPT></DIV>
</div>
<div id="sidebar">
<SCRIPT LANGUAGE="JavaScript">
document.write(Message);
</SCRIPT>
</div>
<div id="content">
</div>
</body>
</html>
mais il y a une erreur dans la ligne :
document.getElementById("blocson").innerHTML = "<EMBED SRC=\""+cheminMP3[numero]+"\" AUTOSTART=TRUE WIDTH=1 HEIGHT=1>";
merci de m'aider