<script type="text/javascript">
window.addEvent('domready', function(){
var myList = document.getElementById('myList');
var previous = document.getElementById('previous');
var next = document.getElementById('next');
var size = myList.getSize().x;
var totIncrement = 0;
var increment = 500;
var maxRightIncrement = increment*(- 6);
var fx = new Fx.Morph(myList, {duration: 'long', transition: Fx.Transitions.Back.easeInOut});
//------------------------------------- // EVENTS for the button "previous" previous.addEvents({
'click' : function(event){
alert ("ciao");
if(totIncrement<0){
totIncrement = totIncrement+increment; fx.cancel();
fx.start({
'margin-left': totIncrement,
});
}
}
});
//-------------------------------------
// EVENTS for the button "next"
next.addEvents({
'click' : function(event){ if(totIncrement>maxRightIncrement){
totIncrement = totIncrement-increment;
fx.cancel();
fx.start({
'margin-left': totIncrement,
});
}
}
});
});
</script>
Versione di mootools è la core 1.2
Qualcuno mi sa spiegare perchè su IE non funziona? dove sbaglio?
Grazie
![]()