I have this function:
<script>
var loop_handle;
var xSeconds = 10000; // 1 second
loop_handle = setInterval(function() {
$('#overlay').fadeOut('fast');
$('#box').hide();
}, xSeconds);
</script>
I wanted to display and fadeout an array of:
<div id="overlay">text</div>
But it seems it only works once. How can I make it work for all the arrays or call it multiple times?