Thanks for the prompt reply.

This is the console error: Uncaught ReferenceError: Drag is not
defined

Thanks again.


On Jun 23, 12:19 pm, Arian <[email protected]> wrote:
> Change Fx.Styles to Fx.Morph and Drag.Base to simply Drag
>
> Enable your console (or firebug) to see what errors you get.
>
> On Jun 23, 12:59 pm, Michael G <[email protected]> wrote:
>
>
>
> > HI, I'm presuming the code below (taken fromhttp://moofx.mad4milk.net)
> > is for Mootools 1.1 only, as it doesn't seem to work with 1.2
>
> > //the draggable ball
>
> > var ball = $('header').getElement('h1');
> > var ballfx = new Fx.Styles(ball, {duration: 1000, 'transition':
> > Fx.Transitions.Elastic.easeOut});
> > new Drag.Base(ball, {
> >         onComplete: function(){
> >                 ballfx.start({'top': 13, 'left': 358});
> >         }
>
> > });
>
> > Can anyone help in getting this to work in 1.2, it would be much
> > appreciated.
>
> > Thanks

Reply via email to