Guest User

Untitled

a guest
Apr 16th, 2018
97
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.68 KB | None | 0 0
  1. var BlindDown = new Class({
  2. Implements: Options,
  3. options: {
  4. duration: 1000,
  5. link: 'ignore',
  6. },
  7. initialize: function(element_id, options){
  8. this.setOptions(options);
  9. var Element = $(element_id);
  10. var HeightOfElement = Element.getSize();
  11. var BlindDownEffect = new Fx.Morph(element_id, {duration: this.options.duration, link: this.options.link});
  12. BlindDownEffect.start({
  13. 'visibility': 'visible',
  14. 'overflow': 'hidden',
  15. 'height': ['0xp', HeightOfElement.y]
  16. });
  17. }
  18.  
  19. });
  20. /* called like:
  21. <a href="#" onclick="new BlindDown('rss_feed'); return false;">blind rss_feeds down</a>
  22. error in IE says "'BlindDown' is undefined"
  23. */
Add Comment
Please, Sign In to add comment