Show
Ignore:
Timestamp:
08/28/2007 10:50:48 PM (15 months ago)
Author:
Shadowhand
Message:

Updated the effects Javascript to make the menu animation faster, based on sikkle's (#kohana) suggestion. Menu looks much more fancy pants now.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/modules/user_guide/views/user_guide/js/effects.php

    r397 r434  
    55        .parent() // Parent ul 
    66        .parent() // Parent li 
    7         .click(function(){// Hover affects the ul > li inside of this li 
     7        .click(function(){ 
     8                        // Hover affects the ul > li inside of this li 
    89                        var curr = $('#menu li.active'); 
    910                        var self = $(this); 
     
    1415                                curr.removeClass('active') 
    1516                                .find('ul > li') 
    16                                 .stack('hide', 200); 
     17                                .stack('hide', 100); 
    1718                                // Show the new elements 
    1819                                self.addClass('active') 
    1920                                .find('ul > li') 
    20                                 .stack('show', 200) 
     21                                .stack('show', 100) 
     22                                // Add a hover color effect 
    2123                                .children('a') 
    2224                                .hover(function() { 
     
    2931                } 
    3032        ); 
     33        // Show the active menu 
    3134        $('#menu li.active ul > li') 
    3235        .stack('show', 200);