Réponse acceptée !
Salut,
t'as une question de ce style juste au dessus...
<html>
<head>
<title>Hello worlds</title>
<script type="text/javascript">
function affichercacher(element1, element2){
if (element2.style.display=="block"){
element2.style.display="none";
element1.value="afficher";
}else{
element2.style.display="block";
element1.value="cacher";
}
}
</script>
</head>
<body>
<fieldset>
<legend>
<input type="button" value="cacher" onclick="affichercacher(this, document.getElementById('afficher_cacher'));" />
</legend>
<div id="afficher_cacher" style="display:block;border:1px solid #000;">
WAZAAA
</div>
</fieldset>
<p>une boite de texte déroulante.</p>
</body>
</html>
In a dream, I saw me, drop dead... U was there, U cried... It was just a dream, if I die, U won't cry, maybe, U'll be happy
Mon site (articles sur la programmation et programmes)