You can't rely on setTimeout. Scriptaculous provides a queue functionality [1] for things like that:
function sequence() { var options = { queue: 'end' }; $('slideshow5').appear(options); $('slideshow5').puff(options); $('slideshow6').appear(options); } // call sequence in 0.6 seconds sequence.delay(0.6); or using anonymous function: (function(){ var options = { queue: 'end' }; $('slideshow5').appear(options); $('slideshow5').puff(options); $('slideshow6').appear(options); }).delay(0.6) [1] http://wiki.script.aculo.us/scriptaculous/show/EffectQueues - kangax On Apr 27, 12:51 pm, "Leonard Burton" <[EMAIL PROTECTED]> wrote: > HI All, > > I am using this code here: > > setTimeout("Sound.play('sounds/movieprojector.mp3');", 600); > setTimeout("Effect.Appear('slideshow5');", 850 + 600); > setTimeout("Effect.Puff('slideshow5');", 850 + 600 + 850); > setTimeout("Effect.Appear('slideshow6');", 850 + 600 + 1700); > > How can I guarantee a consistent result each time? > > It seems that on IE PUFF makes the image move directly up while > firefox makes it move diagonally upward to the left. > > In firefox it seems that the result is subtly different each time. > > Sometimes it is rough, sometimes it is smooth, and other times it > seems that the effect is almost random. > > Thanks, > > -- > Leonard Burton, N9URKhttp://www.jiffyslides.com > [EMAIL PROTECTED] > [EMAIL PROTECTED] > > "The prolonged evacuation would have dramatically affected the > survivability of the occupants." --~--~---------~--~----~------------~-------~--~----~ 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@googlegroups.com 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 -~----------~----~----~----~------~----~------~--~---