Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var BlindDown = new Class({
- Implements: Options,
- options: {
- duration: 1000,
- link: 'ignore',
- },
- initialize: function(element_id, options){
- this.setOptions(options);
- var Element = $(element_id);
- var HeightOfElement = Element.getSize();
- var BlindDownEffect = new Fx.Morph(element_id, {duration: this.options.duration, link: this.options.link});
- BlindDownEffect.start({
- 'visibility': 'visible',
- 'overflow': 'hidden',
- 'height': ['0xp', HeightOfElement.y]
- });
- }
- });
- /* called like:
- <a href="#" onclick="new BlindDown('rss_feed'); return false;">blind rss_feeds down</a>
- error in IE says "'BlindDown' is undefined"
- */
Add Comment
Please, Sign In to add comment