Bonjour, je souhaite afficher un menu et des sous menu comment s'y prend t'on pour
y arrivé ?

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
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
 
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="fr" >
    <head>
        <title>Hello World avec jQuery</title>
        <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
    </head>
    <body>
        <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js"></script>
        <div id="barre">
            <ul id="menu">
                <li>
                    une
                    <ul>
 
                        <li>
                            <a href="#" class="plus" >A  click + </a>   
 
                            <ul class="sous_menu">
                                  <li>
                                      <a href="#">sous_menu1</a>
                                  </li>
                                  <li>
                                      <a href="#">sous_menu2</a>
                                  </li>
                                  <li>
                                      <a href="#">sous_menu3</a>
                                  </li>
                            </ul>
                        </li>
                        <li>
                            <a href="#">B</a>
                        </li>
                        <li>
                            <a href="#">C</a>
                        </li> 
 
 
                    </ul>
                </li>
                <li>
                    deux
                    <ul>
                        <li>
                            <a href="#">toto</a>         
                        </li>
                        <li>
                            <a href="#">titi</a>
                        </li>
                        <li>
                            <a href="#">tata</a>
                        </li> 
                    </ul>
                </li>
                <li>
                    trois
                </li>
            </ul>
 
        </div>
 
    </body>
</html>
<style>
 
    .sous_menu > li a
    {
        background: yellow;
        display: none;
    }
    body
    {
        padding:0px;
        margin:0px;
        border:solid 1px greenyellow;
    }
 
ul { 
    list-style:none;
    margin:0;
    padding:0;
}
 
ul { 
    list-style:none;
    margin:0;
    padding:0;
}
 
    #menu > li
    {
        border:1px solid black;
        background: red;
        float: left;
        /*list-style: none;*/
        width:150px;
        margin:0 10px 0 10px;
    }
 
    li a{
        display:block;
        background: green;
    }
 
    #barre
    {
        padding:0px;
        margin:0px;
        background:gray;
        height:25px;
    }
 
</style>
 
<script type="text/javascript">
    $("#barre").hover(function() {
        $(this).stop().fadeTo("slow",1)        
    }, function() {
        $(this).stop().fadeTo("fast", 0.6)
    });
 
    $("#menu").children('li').hover(function() {
        $(this).stop().children('ul').fadeIn("slow");
    }, function() {
        $(this).stop().children('ul').fadeOut("fast");
    });
 
$("ul > li > a").mouseenter(function(){
   $(this).alert('bonjour');
});
 
</script>
j'aimerais faire appraître les sous menus ?

si vous avez une idée , merci d'avance pour la réponse