Hi, I saw your demo,Thank you! But there's too much recursion error.How to resolve it?
On 7月5日, 下午12时36分, "Glen Lipka" <[EMAIL PROTECTED]> wrote: > I tried to make a demo.http://www.commadot.com/jquery/animate/ > > How come I get an infinite too much recursion error loop? > > Glen > > On 7/4/07, Ganeshji Marwaha <[EMAIL PROTECTED]> wrote: > > > > > select both and animate... like this... > > > $("#first, #second").animate(...); > > > I believe john once said that, the same timer is used for all the elements > > if specified this way... so, you might not have problems with smoothness.. > > > -GTG > > > On 7/4/07, eddy <[EMAIL PROTECTED]> wrote: > > > > There're two divs which have the same position, > > > > <div id='first' style='left:0px,top:0px,width:100px,height:100px'/> > > > <div id='second' style='left:0px,top:0px,width:100px,height:100px'/> > > > > Is there a method to move them smoothly at the same time. > > > > below is not good: > > > $('#first').animate({left:'50px',top:'100px'},1000); > > > $('#second').animate({left:'50px',top:'100px'},1000);