# setInterval problem

**URL:** <https://forum.kirupa.com/t/setinterval-problem/232995>\
**Category:** Uncategorized\
**Created:** [July 19, 2007, 9:57am UTC](https://forum.kirupa.com/t/setinterval-problem/232995 "2007-07-19T09:57:20Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![darkstyle](https://avatars.discourse-cdn.com/v4/letter/d/a5b964/32.png) [@darkstyle](https://forum.kirupa.com/u/darkstyle)\
**Post date:** [July 19, 2007, 9:57am UTC](https://forum.kirupa.com/t/setinterval-problem/232995/1 "2007-07-19T09:57:20Z")

</div>

Hi friends i am using this code

```php
stop();

//define the function for the interval to call
function playSlideshow() {
    play();

}

//start your slideshow when the swf loads 
_root.onLoad = function(){

 myInt = setInterval(playSlideshow, 5000);
}

if(done == true){
    clearInterval(myInt);
    myInt = setInterval(playSlideshow(), 5000);
}

```

which is working fine with firefox but it is not working fine with IE, could you help me??
