daily pastebin goal
81%
SHARE
TWEET

Untitled

a guest Apr 16th, 2018 51 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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. */
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top