source: extensions/Slide/js/menu.js @ 25053

Last change on this file since 25053 was 21579, checked in by Miklfe, 11 years ago
File size: 2.6 KB
Line 
1$(document).ready(function(){
2
3        $("#page_content #nav_wrapper").css("display", "none");
4
5        $("li.liSub:last-child dt").addClass('dd_wrapper');
6        $("li.liSub:last-child dd").addClass('sub');
7
8
9
10        function megaHoverOver(){
11                $(this).find(".sub").stop().fadeTo('slow', 1).show();
12                       
13        }
14       
15        function megaHoverOut(){
16         $(this).find(".sub").stop().fadeTo('slow', 0, function() {
17                  $(this).hide();
18          });
19        }
20
21
22        var configSub = {
23                 sensitivity: 2,                // number = sensitivity threshold (must be 1 or higher)   
24                 interval: 0,                   // number = milliseconds for onMouseOver polling interval   
25                 over: megaHoverOver,   // function = onMouseOver callback (REQUIRED)   
26                 timeout: 0,                    // number = milliseconds delay before onMouseOut   
27                 out: megaHoverOut              // function = onMouseOut callback (REQUIRED)   
28        };
29
30        $("ul#topnav li .sub").css({'opacity':'0'});
31        $("ul#topnav li").hoverIntent(configSub);
32       
33       
34        // Delete the border for the last li of the submenu
35        $("ul#topnav .sub ul li:last-child a").css("border", "none");
36
37        /*other menubar script*/
38        //open form login menu         
39       
40
41       
42        $(".cl_wrapper").next("div").hide();
43
44       
45        $(".cl_wrapper").hover(function(){
46       
47                if($(this).next("div").is(":hidden")){
48                        $(this).next("div").fadeTo('fast', 1);
49                        $(this).addClass('activate');
50                        $(this).next("div").attr(":visible")
51                }
52        });
53               
54       
55        $(".cl_wrapper").click(function(){
56                if($(this).next("div").is(":visible")){
57                $(this).next("div").fadeTo('slow', 0, function(){$(this).hide()});
58                $(this).removeClass('activate'); 
59                $(this).next("div").attr(":hidden")
60                }
61        });
62
63        $(".close").click(function(){
64                if($("#loger").is(":visible")){
65                        $("#loger").fadeTo('fast', 0, function(){$(this).hide()});
66                        $(".cl_wrapper").removeClass('activate');
67                        $("#loger").attr(":hidden");
68                }
69        });
70       
71        $(".cc_wrapper").click(function(){
72                if($(this).next("div").is(":visible")){
73                        $(this).next("div").fadeTo('slow', 0, function(){$(this).hide()});
74                        $(this).removeClass('activate'); 
75                        $(this).next("div").attr(":hidden")
76                }
77        });
78       
79        $(".cc_wrapper").click(function(){
80                if($(this).next("div").is(":hidden")){
81                        $(this).next("div").fadeTo('fast', 1);
82                        $(this).addClass('activate');
83                        $(this).next("div").attr(":visible")
84                }
85        });
86       
87                $(".close").click(function(){
88                if($("#loger").is(":visible")){
89                        $("#loger").fadeTo('fast', 0, function(){$(this).hide()});
90                        $(".cc_wrapper").removeClass('activate');
91                        $("#loger").attr(":hidden");
92                }
93               
94        });
95       
96       
97       
98
99
100        // make column menubar_categorie
101        $('.mcol').makeacolumnlists({cols:4, colWidth:155, equalHeight: true, startN: 1});
102});
Note: See TracBrowser for help on using the repository browser.