Lo script che segue è di un carosello trovato su internet e poi modificato secondo esigenze, tutto funziona alla grande, ma quando ho voluto aggiornare mootools all'ultima versione non funziona più niente (ovviamente eh). Ho cercato e trovato alcuni schemi per fare la migrazione ma non sono riuscito a far nulla. Qualcuno può aiutarmi ?
codice:window.addEvent('domready', function() { var totIncrement = 0; var increment = 1000; var fx = new Fx.Style('cont_dentro', 'margin-left', { duration: 1000, transition: Fx.Transitions.Back.easeInOut, wait: true }); //------------------------------------- // EVENTS for the button "box1" $('box1').addEvents({ 'click' : function(event){ fx.stop() fx.start(totIncrement); } }); //------------------------------------- // EVENTS for the button "box2" $('box2').addEvents({ 'click' : function(event){ fx.stop() fx.start(totIncrement-(increment*1)); } }) });

Rispondi quotando
