/ Published in: JavaScript
handy little script from a great little tutorial to help get you started with script.aculo.us.
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
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] || {}); } }
URL: http://24ways.org/2005/introduction-to-scriptaculous-effects