You can also look at the Open Rico library which is based on Prototype.js > -----Original Message----- > From: [email protected] [mailto:rubyonrails- > [EMAIL PROTECTED] 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" <[EMAIL PROTECTED]> 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 <[EMAIL PROTECTED]> 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 [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/rubyonrails-spinoffs?hl=en -~----------~----~----~----~------~----~------~--~---
