source: trunk/spip/2.1/extensions/magusine-portage2.1/themes/atout/javascript.js @ 756

Last change on this file since 756 was 756, checked in by guillermoacedo@…, 14 years ago

se agrego la correccion de magusine para 2.1 basica

File size: 965 bytes
Line 
1 $(document).ready(function(){
2   
3   // place l'image de fond correcte si deploye
4   $("#navigation").children(".niveau1.courante").children(".ulniveau2").each(function(){   
5   $(this).parent(".niveau1").children("a").addClass("displaydown");
6   });
7   
8   // fait marcher le menu a deux niveaux
9   $('#navigation').children('.niveau1').not('.courante').children(".ulniveau2").each(function(){
10   
11        $(this).parent(".niveau1").mouseover(function() {
12        $(this).children('.ulniveau2').show(); 
13        $(this).children('a').addClass("displaydown");
14        var hg=$('#corps').height();
15        var hn=$('#navigation').height();
16        //alert('general ' + hg + " et nav " + hn);
17        if (hn > hg) { $("#general").height(hn + 60); } 
18                });
19       
20        $(this).parent(".niveau1").mouseout(function() {
21        $(this).children('.ulniveau2').not('.courante').hide();
22        $(this).children('a').removeClass("displaydown");       
23        });
24       
25       
26       
27       
28        });
29       
30       
31       
32 });
Note: See TracBrowser for help on using the repository browser.