window.setTimeout(function() { $('#main-nobut').hide('slow'); $('#main-but').show('slow'); }, 5000);
5000 is 5000ms, or 5 seconds. Do you have a way to retrieve this time on when you want it to appear? On Jul 22, 9:57 am, Mats <dothebizz...@gmail.com> wrote: > How do I bind this in with the show/hide using jQuery ? > > $(document).ready(function(){ > $('#main-but').hide(); > > // This step should be Triggered one time afer X minutes > $something(){ > $('#main-nobut').hide('slow'); > $('#main-but').show('slow'); > }); > > }); > > On Jul 22, 12:58 am, Hector Virgen <djvir...@gmail.com> wrote: > > > If you know how long the movie is, you can use the native > > window.setTimeout() function. > > // Displays alert after 5 seconds > > window.setTimeout(function() > > { > > alert('5 seconds have passed'); > > > }, 5000); > > > -- > > Hector > > > On Tue, Jul 21, 2009 at 1:48 PM, Mats <dothebizz...@gmail.com> wrote: > > > > I have a page that is a displaying a Movie, or it's really 3 Movies > > > but to get to the 2nd Movie the user has to click a "Next" button. My > > > problem is that I want to delay this button to appear until the movie > > > is more or less done... could be 7 or 16 minutes. > > > What would be the easiest and most propriate way to do this using > > > jQuery... swaping out one DIV for another once after X minutes? > > > > Thanks in advance > > > /Mats/ > >