Arian, thank for the suggestion but I ham getting the same error also with your script "this.tooltip is undefined" on line 11..
On 11 Apr, 10:57, Arian Stolwijk <[email protected]> wrote: > Probably the initialize event doesn't exist anymore. You could use the > attach event. > Besides that, the `wait: false` option has been replaced by the `link: > 'cancel'` option. > > However you could also simply use the .fade method: > > 1. window.addEvent('domready', function() { > 3. var Tips2 = new Tips($$('.tips'), { > 10. onShow: function(toolTip) { > 11. this.toolTip.fade('in'); > 12. }, > 13. onHide: function(toolTip) { > 14. this.toolTip.fade('out'); > 15. } > 16. }); > 17. }); > > And if you're upgrading anyway, why not upgrade to 1.3 directly? > > On Mon, Apr 11, 2011 at 10:51 AM, thesaltydog <[email protected]> wrote: > > Hi, > > > I have this tooltip_1.1.js working on mootools 1.1: > > > 1. window.addEvent('domready', function() { > > 2. var Tips2 = new Tips($$('.tips'), { > > 3. initialize:function(){ > > 4. this.fx = new Fx.Style(this.toolTip, 'opacity', > > {duration: 400, wait: false}).set(0); > > 5. }, > > 6. onShow: function(toolTip) { > > 7. this.fx.start(1); > > 8. }, > > 9. onHide: function(toolTip) { > > 10. this.fx.start(0); > > 11. } > > 12. }); > > 13. }); > > > Then I migrated to 1.2 and I have edited the script in this way: > > Line number On/Off | Expand/Contract | Select all > > > 1. > > 2. window.addEvent('domready', function() { > > 3. var Tips2 = new Tips($$('.tips'), { > > 4. initialize: function(){ > > 5. this.fx = new Fx.Tween(this.toolTip,{ > > 6. duration: 400, > > 7. wait: false}); > > 8. this.fx.set('opacity',0); > > 9. }, > > 10. onShow: function(toolTip) { > > 11. this.fx.set('opacity',1); > > 12. }, > > 13. onHide: function(toolTip) { > > 14. this.fx.set('opacity',0); > > 15. } > > 16. }); > > 17. }); > > > It is not working, and Firebug is claiming a "this.fx is undefined" > > error on line 11... > > > Anyone can help, pls?
