hello every one : i have this code ----- start ---- this.options = Object.extend({ activeElement: null, activeIndex: 1, effect: 'blind', duration: 0.2, activeClassName: 'active', onActivate: me, }, arguments[1] || {}); ------- end --------
but in IE i got the error that the code is not right ... any help here ? ------ the full code ---- Accordion = Class.create({ initialize: function(elem) { this.options = Object.extend({ activeElement: null, activeIndex: 1, effect: 'blind', duration: 0.2, activeClassName: 'active', onActivate: null, }, arguments[1] || {}); var children = $$('#' + elem + ' > dt'); children.invoke('observe','click', this._activateByEvent.bindAsEventListener(this)) .invoke('next') .invoke('hide'); this.activePanel = (this.options.activeElement) ? $(this.options.activeElement) : children[this.options.activeIndex - 1]; this.activePanel.addClassName(this.options.activeClassName) .next().show().addClassName(this.options.activeClassName); }, _activateByEvent: function(event) { this.activate(Event.element(event)); }, activate: function(elem) { var panel = $(elem); if(panel != this.activePanel) { if (this.options.onActivate && !this.options.onActivate(panel)) { return; } if (this.options.effect == 'blind') { new Effect.Parallel ( [ new Effect.BlindUp(this.activePanel.next()), new Effect.BlindDown(panel.next()) ], {duration: this.options.duration}); } else if (this.options.effect == 'slide') { new Effect.Parallel ( [ new Effect.SlideUp(this.activePanel.next()), new Effect.SlideDown(panel.next()) ], {duration: this.options.duration}); } else { this.activePanel.next().hide(); panel.next().show(); } panel.addClassName(this.options.activeClassName); this.activePanel.removeClassName(this.options.activeClassName) .next().removeClassName(this.options.activeClassName); this.activePanel = panel; } } }); --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Prototype & script.aculo.us" group. To post to this group, send email to prototype-scriptaculous@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/prototype-scriptaculous?hl=en -~----------~----~----~----~------~----~------~--~---