Return to Snippet

Revision: 5647
at March 22, 2008 14:57 by rodreegez


Initial Code
Effect.OpenUp = function(element) {
     element = $(element);
     new Effect.BlindDown(element, arguments[1] || {});
 }

 Effect.CloseDown = function(element) {
     element = $(element);
     new Effect.BlindUp(element, arguments[1] || {});
 }

 Effect.Combo = function(element) {
     element = $(element);
     if(element.style.display == ‘none’) { 
          new Effect.OpenUp(element, arguments[1] || {}); 
     }else { 
          new Effect.CloseDown(element, arguments[1] || {}); 
     }
 }

Initial URL
http://24ways.org/2005/introduction-to-scriptaculous-effects

Initial Description
handy little script from a great little tutorial to help get you started with script.aculo.us.

Initial Title
script.aculo.us check state by 24ways

Initial Tags

                                

Initial Language
JavaScript