Page 1 of 1

click a button after 5 seconds

Posted: Wed May 13, 2009 7:03 am
by fabby
i have this site:
http://www.buyshop.ro and in center is a banner made in ajax. how to make, that on 5 second, to change the content(there are 4 products and i want to change until the last, and to take from beginning..)

thanks.

Re: click a button after 5 seconds

Posted: Wed May 13, 2009 10:50 am
by Christopher
User the Javascript TimeOut() function:

http://www.w3schools.com/js/js_timing.asp

Re: click a button after 5 seconds

Posted: Wed May 13, 2009 2:56 pm
by crazycoders
or Window.SetInterval() which is better in this case since it's not only one callback but successive callbacks!