bonjour à tous , lorsque je survole un menu cours par exemple , un menu apparaît.
Quel bout de code je doit récupérer afin d'avoir un autre menu en survolant à l'intérieur de celui ?


voici mon script

Code html : 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
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
 
<body>
 
<div class="container">
 
<!-- #===========================================================PORTAIL VETAGROSUP============================  -->
 
    <div id="header"></div>
    <ul id="topnav">
    	<li>
 
        </li>
 
 
 
 
<!-- ===========================================================MENU INTRANET=============================== -->
        <li>
        	<a href="#" class="cours">cours</a>
            <div class="sub">
            	<div class="row" id="sub_cours">
 
                    <ul style="width: 500px;">
                        <li><a href="#"><img src="theme/campusvet/dropmenu/S6.png"></a></li>
                        <li><a href="#">Introduction</a>-<a href="#">Anglais S5</a></li>
 
                    </ul>
 
                    <ul style="width: 225px;">
                        <li><h2><a href="#"><img src="theme/campusvet/dropmenu/S6.png"></a></h2></li>
                        <li><a href="#">Navigation Link - 2 Column</a></li>
                    </ul>
 
                    <ul style="width: 225px;">
                        <li><h2><a href="#"><img src="theme/campusvet/dropmenu/S6.png"></a></h2></li>
                        <li><a href="#">Navigation Link - 2 Column</a></li>
                    </ul>
                    <ul style="width: 225px;">
                        <li><h2><a href="#"><img src="theme/campusvet/dropmenu/S6.png"></a></h2></li>
                        <li><a href="#">Navigation Link - 2 Column</a></li>
                    </ul>
 
                </div>            
            </div>
        </li>
 
    </ul>
 
</div>
 
 
 
</div>
 
 
 
<!-- ############################################################################################"-->
<script type="text/javascript" >
(function($){$.fn.hoverIntent=function(f,g){var cfg={sensitivity:7,interval:100,timeout:0};cfg=$.extend(cfg,g?{over:f,out:g}:f);var cX,cY,pX,pY;var track=function(ev){cX=ev.pageX;cY=ev.pageY;};var compare=function(ev,ob){ob.hoverIntent_t=clearTimeout(ob.hoverIntent_t);if((Math.abs(pX-cX)+Math.abs(pY-cY))<cfg.sensitivity){$(ob).unbind("mousemove",track);ob.hoverIntent_s=1;return cfg.over.apply(ob,[ev]);}else{pX=cX;pY=cY;ob.hoverIntent_t=setTimeout(function(){compare(ev,ob);},cfg.interval);}};var delay=function(ev,ob){ob.hoverIntent_t=clearTimeout(ob.hoverIntent_t);ob.hoverIntent_s=0;return cfg.out.apply(ob,[ev]);};var handleHover=function(e){var p=(e.type=="mouseover"?e.fromElement:e.toElement)||e.relatedTarget;while(p&&p!=this){try{p=p.parentNode;}catch(e){p=this;}}if(p==this){return false;}var ev=jQuery.extend({},e);var ob=this;if(ob.hoverIntent_t){ob.hoverIntent_t=clearTimeout(ob.hoverIntent_t);}if(e.type=="mouseover"){pX=ev.pageX;pY=ev.pageY;$(ob).bind("mousemove",track);if(ob.hoverIntent_s!=1){ob.hoverIntent_t=setTimeout(function(){compare(ev,ob);},cfg.interval);}}else{$(ob).unbind("mousemove",track);if(ob.hoverIntent_s==1){ob.hoverIntent_t=setTimeout(function(){delay(ev,ob);},cfg.timeout);}}};return this.mouseover(handleHover).mouseout(handleHover);};})(jQuery);
 
$(document).ready(function() {
        
 
        function megaHoverOver(){
                $(this).find(".sub").stop().fadeTo('fast', 1).show();
                        
                //Calculate width of all ul's
                (function($) { 
                        jQuery.fn.calcSubWidth = function() {
                                rowWidth = 0;
                                //Calculate row
                                $(this).find("ul").each(function() {                                    
                                        rowWidth += $(this).width(); 
                                });     
                        };
                })(jQuery); 
                
                if ( $(this).find(".row").length > 0 ) { //If row exists...
                        var biggestRow = 0;     
                        //Calculate each row
                        $(this).find(".row").each(function() {                                                     
                                $(this).calcSubWidth();
                                //Find biggest row
                                if(rowWidth > biggestRow) {
                                        biggestRow = rowWidth;
                                }
                        });
                        //Set width
                        $(this).find(".sub").css({'width' :biggestRow});
                        $(this).find(".row:last").css({'margin':'0'});
                        
                } else { //If row does not exist...
                        
                        $(this).calcSubWidth();
                        //Set Width
                        $(this).find(".sub").css({'width' : rowWidth});
                        
                }
        }
        
        function megaHoverOut(){ 
          $(this).find(".sub").stop().fadeTo('fast', 0, function() {
                  $(this).hide(); 
          });
        }
 
 
        var config = {    
                 sensitivity: 2, // number = sensitivity threshold (must be 1 or higher)    
                 interval: 100, // number = milliseconds for onMouseOver polling interval    
                 over: megaHoverOver, // function = onMouseOver callback (REQUIRED)    
                 timeout: 500, // number = milliseconds delay before onMouseOut    
                 out: megaHoverOut // function = onMouseOut callback (REQUIRED)    
        };
 
        $("ul#topnav li .sub").css({'opacity':'0'});
        $("ul#topnav li").hoverIntent(config);
 
 
 
});
 
 
 
</script> 
 
 
<style>
.container {
    width:99%;
    background: red;
    display: inline;
    background: #d0cfcb; /*gris clair*/
    position: absolute;
    z-index:30;
 
}
 
ul#topnav {
        margin: 0; padding: 0;
        float:left;
        width: 100%;
        list-style: none;
        font-size: 1.1em;
}
ul#topnav li {
        float: left;
        margin: 0; padding: 0;
        position: relative;
}
ul#topnav li a {
        float: left; 
        text-indent: -9999px;
        height: 30px; /* la bande de menu est de 30px*/
}
ul#topnav li:hover a, ul#topnav li a:hover { background-position: left bottom; }
 
/*===============================================CSS MENU LATTERAL======================*/
 
ul#topnav a.vetagrosup {
        background: url(vetagrosup.png) no-repeat;
        width: 124px; 
}
 
ul#topnav a.cours {
        background: url(cours.png) no-repeat;
        width: 124px; 
}
 
 
ul#topnav a.forums {
        background: url(forums.png) no-repeat;
        width: 124px; 
}
 
 
 
ul#topnav a.intranet {
        background: url(intranet.png) no-repeat;
        width: 124px; 
}
 
 
/*****************************************CSS MENU LATTERAL***********************************/
 
 
ul#topnav li .sub {
    background: #e1a131;
        position: absolute;     
        top: 30px; left: 0;
        padding: 20px 20px 20px;
        float: left;
        /*--Bottom right rounded corner--*/
        -moz-border-radius-bottomright: 5px;
        -khtml-border-radius-bottomright: 5px;
        -webkit-border-bottom-right-radius: 5px;
        /*--Bottom left rounded corner--*/
        -moz-border-radius-bottomleft: 5px;
        -khtml-border-radius-bottomleft: 5px;
        -webkit-border-bottom-left-radius: 5px;
        display: none;
}
ul#topnav li .row {clear: both; float: left; width: 100%; margin-bottom: 10px;}
ul#topnav li .sub ul{
        list-style: none;
        margin: 0; padding: 0;
        width: 150px;
        float: left;
}
ul#topnav .sub ul li {
        width: 100%;
        color: #fff;
}
ul#topnav .sub ul li h2 {
        padding: 0;  margin: 0;
        font-size: 1.3em;
        font-weight: normal;
}
ul#topnav .sub ul li h2 a {
        padding: 5px 0;
        background-image: none;
        color: #e8e000;
}
ul#topnav .sub ul li a {
        float: none; 
        text-indent: 0; /*--Reset text indent--*/
        height: auto;
        padding: 7px 5px 7px 15px;
        display: block;
        text-decoration: none;
        color: #fff;
}
ul#topnav .sub ul li a:hover {color: #ddd; background-position: 5px 12px ;}
</style>
 
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js"></script>
<script>
(function($){$.fn.hoverIntent=function(f,g){var cfg={sensitivity:7,interval:100,timeout:0};cfg=$.extend(cfg,g?{over:f,out:g}:f);var cX,cY,pX,pY;var track=function(ev){cX=ev.pageX;cY=ev.pageY;};var compare=function(ev,ob){ob.hoverIntent_t=clearTimeout(ob.hoverIntent_t);if((Math.abs(pX-cX)+Math.abs(pY-cY))<cfg.sensitivity){$(ob).unbind("mousemove",track);ob.hoverIntent_s=1;return cfg.over.apply(ob,[ev]);}else{pX=cX;pY=cY;ob.hoverIntent_t=setTimeout(function(){compare(ev,ob);},cfg.interval);}};var delay=function(ev,ob){ob.hoverIntent_t=clearTimeout(ob.hoverIntent_t);ob.hoverIntent_s=0;return cfg.out.apply(ob,[ev]);};var handleHover=function(e){var p=(e.type=="mouseover"?e.fromElement:e.toElement)||e.relatedTarget;while(p&&p!=this){try{p=p.parentNode;}catch(e){p=this;}}if(p==this){return false;}var ev=jQuery.extend({},e);var ob=this;if(ob.hoverIntent_t){ob.hoverIntent_t=clearTimeout(ob.hoverIntent_t);}if(e.type=="mouseover"){pX=ev.pageX;pY=ev.pageY;$(ob).bind("mousemove",track);if(ob.hoverIntent_s!=1){ob.hoverIntent_t=setTimeout(function(){compare(ev,ob);},cfg.interval);}}else{$(ob).unbind("mousemove",track);if(ob.hoverIntent_s==1){ob.hoverIntent_t=setTimeout(function(){delay(ev,ob);},cfg.timeout);}}};return this.mouseover(handleHover).mouseout(handleHover);};})(jQuery);
 
$(document).ready(function() {
        
 
        function megaHoverOver(){
                $(this).find(".sub").stop().fadeTo('fast', 1).show();
                        
                //Calculate width of all ul's
                (function($) { 
                        jQuery.fn.calcSubWidth = function() {
                                rowWidth = 0;
                                //Calculate row
                                $(this).find("ul").each(function() {                                    
                                        rowWidth += $(this).width(); 
                                });     
                        };
                })(jQuery); 
                
                if ( $(this).find(".row").length > 0 ) { //If row exists...
                        var biggestRow = 0;     
                        //Calculate each row
                        $(this).find(".row").each(function() {                                                     
                                $(this).calcSubWidth();
                                //Find biggest row
                                if(rowWidth > biggestRow) {
                                        biggestRow = rowWidth;
                                }
                        });
                        //Set width
                        $(this).find(".sub").css({'width' :biggestRow});
                        $(this).find(".row:last").css({'margin':'0'});
                        
                } else { //If row does not exist...
                        
                        $(this).calcSubWidth();
                        //Set Width
                        $(this).find(".sub").css({'width' : rowWidth});
                        
                }
        }
        
        function megaHoverOut(){ 
          $(this).find(".sub").stop().fadeTo('fast', 0, function() {
                  $(this).hide(); 
          });
        }
 
 
        var config = {    
                 sensitivity: 2, // number = sensitivity threshold (must be 1 or higher)    
                 interval: 100, // number = milliseconds for onMouseOver polling interval    
                 over: megaHoverOver, // function = onMouseOver callback (REQUIRED)    
                 timeout: 500, // number = milliseconds delay before onMouseOut    
                 out: megaHoverOut // function = onMouseOut callback (REQUIRED)    
        };
 
        $("ul#topnav li .sub").css({'opacity':'0'});
        $("ul#topnav li").hoverIntent(config);
});
 
 
 
</script>
 
</body>
</html>

je vous remercie d'avance pour la réponse