<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<script type="text/javascript">
function add_soc(oSelect)
{
lesfichiers.innerHTML='';
var value = oSelect.options[oSelect.selectedIndex].value;
var leFichierACopier = document.getElementById("fichier[]");
var laDivOuAjouterLaListe = document.getElementById("lesfichiers");
laDivOuAjouterLaListe.innerHTML='';
for(i=0;i<value;i++)
{
laDivOuAjouterLaListe.appendChild(leFichierACopier.cloneNode(true));
}
}
</script>
<title></title>
</head>
<body bgcolor="#7F7FB1" >
<select name="yo" onchange="add_soc(this);"/ >
<option value="1" >1</option>
<option value="2" >2</option>
<option value="3" >3</option>
<option value="4" >4</option>
<option value="5" >5</option>
</select><br />
<input type="file" name="fichier[]" id="fichier[]" /><br />
<div id="lesfichiers" ></div>
</body>
</html>
Partager