click a button after 5 seconds

JavaScript and client side scripting.

Moderator: General Moderators

Post Reply
fabby
Forum Commoner
Posts: 62
Joined: Tue Feb 15, 2005 1:06 am
Location: Romania
Contact:

click a button after 5 seconds

Post 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.
User avatar
Christopher
Site Administrator
Posts: 13596
Joined: Wed Aug 25, 2004 7:54 pm
Location: New York, NY, US

Re: click a button after 5 seconds

Post by Christopher »

User the Javascript TimeOut() function:

http://www.w3schools.com/js/js_timing.asp
(#10850)
crazycoders
Forum Contributor
Posts: 260
Joined: Tue Oct 28, 2008 7:48 am
Location: Montreal, Qc, Canada

Re: click a button after 5 seconds

Post by crazycoders »

or Window.SetInterval() which is better in this case since it's not only one callback but successive callbacks!
Post Reply