works. Thanks again.
On Feb 4, 4:10 pm, Arian Stolwijk <[email protected]> wrote: > Use the scrolledTo event instead:http://jsfiddle.net/NmudS/1134/ > > On Sat, Feb 4, 2012 at 2:56 PM, hamburger <[email protected]> wrote: > > Hello, > > I have the problem to change an element with Scrolling. > > > I would like to set the element in the menue as active after scrolling > > to the href-property > > > // animate scrolling > > var mySmoothScroll = new Fx.SmoothScroll({ > > wheelStops: true, > > onComplete: function(e){ > > console.log("smoooth done ",e); > > window.getElement(e).setClass('active'); > > } > > }); > > >http://jsfiddle.net/NmudS/1133/
