Subversion Repositories My Stuff

Rev

Rev 13 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 13 Rev 15
Line 7... Line 7...
7
# License: GPLv3
7
# License: GPLv3
8
# The full version of the licencse can be obtainted by visiting:
8
# The full version of the licencse can be obtainted by visiting:
9
# http://www.gnu.org/licenses/gpl.html
9
# http://www.gnu.org/licenses/gpl.html
10
#######################################################################*/
10
#######################################################################*/
11
$(document).ready(function(){
11
$(document).ready(function(){
12
        var $menu = $('.artmenu');
-
 
13
        $menu.children('li.nav_menu').each(function(){
-
 
14
                var $this = $(this);
-
 
15
                var $anchor = $this.children('a');
-
 
16
                $anchor.data('width',$anchor.width());
-
 
17
               
-
 
18
                $this.bind('mouseenter',function(){
-
 
19
                        $menu.find('ul.submenu').stop(true,true).hide();
-
 
20
                        $anchor.stop().animate({'width':'180px'},300,function(){
-
 
21
                                $this.find('ul.submenu').slideDown(500);
-
 
22
                        });
-
 
23
                }).bind('mouseleave',function(){
-
 
24
                        $this.find('ul.submenu').stop(true,true).hide();
-
 
25
                        $anchor.stop().animate({'width':$anchor.data('width')+'px'},300);
-
 
26
                });
-
 
27
        });
-
 
-
 
12
        var $menu = $('.artmenu');
-
 
13
        $menu.children('li.nav_menu').each(function(){
-
 
14
                var $this = $(this);
-
 
15
                var $anchor = $this.children('a');
-
 
16
                var $submenu = $menu.find('ul.submenu');
-
 
17
                $anchor.data('width',$anchor.width());
-
 
18
               
-
 
19
                $this.mouseenter(function(){
-
 
20
                                $submenu.stop(true,true).hide();
-
 
21
                        $anchor.stop().animate({'width':'227px'},300,function(){
-
 
22
                                $this.find('ul.submenu').slideDown(500);
-
 
23
                        });
-
 
24
                }).mouseleave(function(){
-
 
25
                                $submenu.stop(true,true).hide();
-
 
26
                        $anchor.stop().animate({'width':$anchor.data('width')+'px'},300);
-
 
27
                });              
-
 
28
        });
28
});
29
});