Monday, 4 February 2008

MultiBox - compatibility with mootools 1.2beta

Here is what you need to do to make the MultiBox script compatibile with mootools 1.2 beta 2.
I'm not releasing these updates in a script as i want to rewrite it when 1.2 gets released, so i can use all the nice new features.

Replace the following:

  • Fx.Styles with Fx.Morph
  • transition: Fx.Transitions.sineInOut with transition: Fx.Transitions.Sine.easeInOut
  • Class.empty with new Class()
  • this.containerEffects.stop() with this.containerEffects.cancel()

4 comments:

thom@ said...

excellent work!

- thom
http://www.Valhalla-Studios.com

Anonymous said...

It would be nice if the description wasn't required, that it would work if you didn't provide a descClassName. Very cool regardless. Good work!

Tom Stone said...

You do wonderful work! I've have used your slideshow, and are very happy with it - can't even imagine how it could be improved.

Unfortunately, your slideshow stop to function under MooTools 1.2b2 (with the compability layer).

Firebug gives an error in BackgroundSlider.js, line 49:
"this.options.onClick has no properties"
And line 49 looks like this:
el.addEvent('click', this.options.onClick.bind(this, el));

I would be immensely grateful for any advice on how to adjust the script, because I dearly would want it up and running again.

Bitbox said...

Thanks for the great work, and mostly thank you for sharing it !

Just a note about having a Mootools 1.2b2 compatible version. It might also be necessary to modify 3 lines in overlay.js in case you want to use this option:

line 20: Class.empty -> new Class()
line 68: Fx.Style -> Fx.Tween
line 76: window.getScrollHeight() -> document.getScrollSize().x

Doing this completes the 1.2b2 compatibility changes (I think).

I still experiment a stange behaviour though when in FF as sometimes the whole page is not covered by the dark overlay, it leaves an uncovered area at the bottom. This behaviour gets even worse when using a "slide" effect in the page. After the slide effect has run the uncovered area gets bigger !?

Anyways it is still a very good script and it's usage is pretty straight forward.