# Help with pausing function call in for loop

**URL:** <https://forum.kirupa.com/t/help-with-pausing-function-call-in-for-loop/227935>\
**Category:** flash\
**Created:** [June 4, 2007, 1:58am UTC](https://forum.kirupa.com/t/help-with-pausing-function-call-in-for-loop/227935 "2007-06-04T01:58:44Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![rollwithit80](https://avatars.discourse-cdn.com/v4/letter/r/ad7895/32.png) [@rollwithit80](https://forum.kirupa.com/u/rollwithit80)\
**Post date:** [June 4, 2007, 1:58am UTC](https://forum.kirupa.com/t/help-with-pausing-function-call-in-for-loop/227935/1 "2007-06-04T01:58:44Z")

</div>

Hi Guys, I have a thumbnail gallery and i want each thumbnail to appear 1 by 1 rather than appear all at once.  
At the moment i have a for loop that creates each of the thumbnails.

```auto
function selectThumbs(){
 
 for (var j = 0; j<total; j++) {
  
   myInt = setInterval(createThumbs(j),2000)
  
 }
}

```

However i can’t seem to pause the function call in betweeb each loop. I have a clearInterval() inthe the createThumbs function.  
Any suggestions would be great.

Thanks  
dc
