Home » jQuery

jQuery: SetTimeout

25 January 2010 29 views No Comment

It is very easy to execute some code after a specified time-interval, i.e. setting some time interval between the code. We can use the setTimeout function.

Here is the code:

setTimeout(function(){
	alert("hello");
}, 1000);

The basic structure is setTimeout(function, time in ms)

Cheers,

Popularity: 3%

Related posts:

  1. jQuery: Set time interval between events with queue function
  2. jQuery: A simple Slideshow
  3. jQuery: Animate and Transfer effect with Image
  4. jQuery: Preview Image with Zoom Effect
Share/Bookmark
1 Star2 Stars3 Stars4 Stars5 Stars (No Ratings Yet)
Loading ... Loading ...

Leave your response!

Add your comment below, or trackback from your own site. You can also subscribe to these comments via RSS.

Be nice. Keep it clean. Stay on topic. No spam.

You can use these tags:
<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

This is a Gravatar-enabled weblog. To get your own globally-recognized-avatar, please register at Gravatar.