Bonsoir,
Voila j'ai un petit soucis de menus. J'ai creer un menu principal :dans lequel, comme vous pouvez le remarquer, je fais appel a une fonction JS pour faire apparaitre mon sous-menu :
Code : Sélectionner tout - Visualiser dans une fenêtre à part
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 <table> <tr> <td> <a href="acceuil.html" target="frame">Accueil</a></td> <td> <a href="#" target="frame">Définition</a></td> <td> <a href="#" target="frame">Histoire</a></td> <td> <a href="#" target="frame">Elaborations </a></td> <td onclick="application_update()" onmouseover="this.style.cursor='pointer'"> Applications <div id="application_details"> <div> <a href="#" target="frame">Informatique</a> </div> <div> <a href="#" target="frame">Materiaux</a> </div> </div></td> <td> <a href="#" target="frame">FAQ's</a></td> <td> <a href="#" target="frame">Contact</a></td> </tr> </table>Cependant j'ai un sousic. En effet mon sous-menu apparait dans la meme case que mon menu " Application " . Donc j'aimerai savoir comment faire pour le mettre dans deux cases différentes l'une en dessous de l'autre?
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8 function application_update(){ application=document.getElementById("application_details"); if(application.style.display=="none") { application.style.display="block"; } else { application.style.display="none"; } }
Merci
Partager