yep yep. already got it some mins after my post. working fine without
mouseover. thank you. :)

On 17 Jul., 13:02, Nick Fitzsimons <n...@nickfitz.co.uk> wrote:
> 2009/7/17 weidc <mueller.juli...@googlemail.com>:
>
> > this is my code (js):
> > $("#boden").mousemove(function(e)
> <snip>
>
> >                $(this).click(function()
> <snip>
> > it is just moving a little div in an other div to the point where you
> > clicked. it works pretty well but after 20-30 clicks the animations
> > takes some time to fire again and i wonder why. someone got an idea?
>
> You appear to be adding a new "click" event handler on every
> "mousemove" event. After a few seconds of moving the mouse you will
> have added hundreds, if not thousands, of event handlers. Obviously,
> they'll take a little while to execute, even though they all do the
> same thing...
>
> Cheers,
>
> Nick.
> --
> Nick Fitzsimonshttp://www.nickfitz.co.uk/

Reply via email to