Hello macsig!

I haven't really had time to look into your problem, but after a quick
look through the documentation i found this
http://docs.jquery.com/Effects/stop#clearQueuegotoEnd

Perhaps that could work for you? I imagine something along the lines
of :

$('#down_button').mouseover(function(){
                                $('#text').scrollTo('100%', {axis:'y',
duration: 5000});
        }).mouseout(function(){
                                $('#text').stop();
        });

Give that a try!

On 21 Sep, 03:49, macsig <sigbac...@gmail.com> wrote:
> Hi there,
> I'm trying to use scrollTo in oder to scroll vertically a div. I want
> to use 2 anchors, one to go up and the other to go down and I need
> that the effect works ONLY when the mouse is over the anchor (when I
> move it out the animation has to stop).
>
> How can I achieve so?
>
> For instance the code below scrolls correctly down but it doesn't stop
> until the end even if I move out the mouse.
>
>         $('#down_button').mouseover(function(){
>                                 $('#text').scrollTo('100%', {axis:'y', 
> duration: 5000});
>         }).mouseout(function(){ });
>
> THANKS
>
> Sig

Reply via email to