- changeTo: function(element, animate) {
- if ($type(element) == 'number') element = this.panes[element - 1];
- if (!$defined(animate)) animate = true;
- var event = { cancel: false, target: $(element), animateChange: animate };
- this.fireEvent('change', event);
- if (event.cancel == true) { return; };
- if (this.buttons) { this.buttons[this.current].removeClass(this.options.activeButtonClass); };
- this.current = this.panes.indexOf($(event.target));
- var oldHeight = this.outerSlidesBox.getStyle('height');
- this.panes[this.current].setStyle('display','block');
- var oldHeight = this.outerSlidesBox.setStyle('height', oldHeight);
- if (this.buttons) { this.buttons[this.current].addClass(this.options.activeButtonClass); };
- this.fx.cancel();
- if (event.animateChange) {
- this.fx.toElement(event.target);
- } else {
- this.outerSlidesBox.scrollTo(this.current * this.outerSlidesBox.offsetWidth.toInt(), 0);
- }
- if (this.options.animateHeight)
- this.heightFx.tween('height',this.panes[this.current].offsetHeight);
- },
This has been bugging me for a looooong time !
Your solution rocks !
Often a fresh eye (of the storm,
TKS A LOT!


