1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27
|
<div class="gauche"><fieldset>
<legend>Nom :</legend> <input name=nomFilm type="text">
<legend>Année :</legend> <input name=dateFilm type="date">
<legend>Pays :</legend> <input name=PaysFilm type="text">
<legend>Liens :</legend>
<input class="ajoutLienButton" type="button" name="ajoutLien" value="Ajouter un lien" onclick="AjoutLien();">
<div id="liens">
<input type="text" name="lien1" size="50" /><br />
</div>
<div id="logoEtoile" ><img src="./logoEtoile.png"/></div>
</fieldset></div>
<script type="text/javascript">
num_lien = 2;
function AjoutLien(i){
function display(value) {
if(typeof value != 'undefined') {
num_lien = value;
}
}
document.getElementById('liens').innerHTML += '<input type="text" name="lien'+num_lien+'" size="50" /><br />';
num_lien++;
}
</script> |