- <script type="text/javascript">
- window.addEvent('load', function(){
- var totIncrement = 0;
- var increment = 190;
- var maxRightIncrement = increment*(-6);
- var fx = new Fx.Tween('scroller', 'margin-left', {
- duration: 1000,
- transition: Fx.Transitions.Back.easeInOut,
- wait: true
- });
- $('previous').addEvents({
- 'click' : function(event){
- if(totIncrement<0){
- totIncrement = totIncrement+increment;
- fx.cancel()
- fx.set(totIncrement);
- }
- }
- });
- $('next').addEvents({
- 'click' : function(event){
- if(totIncrement>maxRightIncrement){
- totIncrement = totIncrement-increment;
- fx.cancel()
- fx.set(totIncrement);
- }
- }
- })
- });
- </script>
first, this is my first post in this forum, and i am very new to mootools, i have understood a little how it works, but this is not my strong, however i need help with a bit o code of a scroller that is for mootools 1.1, i need to upgrade it to 1.2, thanks for your help!.


