Is there possibility to get a div fade in for some seconds and automatically fade out after a few seconds? Thanks a lot! --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Spinoffs" group. To post to this group, send email to rubyonrails-spinoffs-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-spinoffs-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-spinoffs?hl=en -~----------~----~----~----~------~----~------~--~---
start a timeout, call your effect. Use the afterFinish callback to start another timeout, which is likely to happen after the first timeout and after the effect is complete and then start another effect.. etc.. setTimeout( function() { new Effect.Appear(div, { afterFinish: function() { setTimeout(function() { new Effect.Fade(div); }, 2000) } }); }, 2000) 2000 = 2secs, setTimeout and setInterval are using milisecs. Hope this helps. On 4/6/07, Glenn <laebensglenn-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> > Is there possibility to get a div fade in for some seconds and > automatically fade out after a few seconds? > > Thanks a lot! > > > > >-- Regards, Kjell www.m3nt0r.de --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Spinoffs" group. To post to this group, send email to rubyonrails-spinoffs-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-spinoffs-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-spinoffs?hl=en -~----------~----~----~----~------~----~------~--~---
Thank you so much. I''m really new in this stuff, but it works fine now! On 6 apr, 22:53, "Kjell Bublitz" <m3nt0r...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> start a timeout, call your effect. Use the afterFinish callback to > start another timeout, which is likely to happen after the first > timeout and after the effect is complete and then start another > effect.. etc.. > > setTimeout( function() { > new Effect.Appear(div, { afterFinish: function() { > setTimeout(function() { > new Effect.Fade(div); > }, 2000) > } > }); > > }, 2000) > > 2000 = 2secs, setTimeout and setInterval are using milisecs. > > Hope this helps. > > On 4/6/07, Glenn <laebensgl...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > > > > > Is there possibility to get a div fade in for some seconds and > > automatically fade out after a few seconds? > > > Thanks a lot! > > -- > Regards, Kjellwww.m3nt0r.de--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Spinoffs" group. To post to this group, send email to rubyonrails-spinoffs-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-spinoffs-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-spinoffs?hl=en -~----------~----~----~----~------~----~------~--~---
You can also look at the Open Rico library which is based on Prototype.js> -----Original Message----- > From: rubyonrails-spinoffs-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org [mailto:rubyonrails- > spinoffs-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org] On Behalf Of Glenn > Sent: Friday, April 06, 2007 5:37 PM > To: Ruby on Rails: Spinoffs > Subject: [Rails-spinoffs] Re: Auto fade > > > Thank you so much. I''m really new in this stuff, but it works fine > now! > > > > On 6 apr, 22:53, "Kjell Bublitz" <m3nt0r...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > > start a timeout, call your effect. Use the afterFinish callback to > > start another timeout, which is likely to happen after the first > > timeout and after the effect is complete and then start another > > effect.. etc.. > > > > setTimeout( function() { > > new Effect.Appear(div, { afterFinish: function() { > > setTimeout(function() { > > new Effect.Fade(div); > > }, 2000) > > } > > }); > > > > }, 2000) > > > > 2000 = 2secs, setTimeout and setInterval are using milisecs. > > > > Hope this helps. > > > > On 4/6/07, Glenn <laebensgl...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > > > > > > > > > Is there possibility to get a div fade in for some seconds and > > > automatically fade out after a few seconds? > > > > > Thanks a lot! > > > > -- > > Regards, Kjellwww.m3nt0r.de > > >--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Spinoffs" group. To post to this group, send email to rubyonrails-spinoffs-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-spinoffs-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-spinoffs?hl=en -~----------~----~----~----~------~----~------~--~---