0

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?

4

1 回答 1

0
var xSeconds = 10000; // 1 second

应该:

var xSeconds = 1000; // 1 second
于 2013-04-10T20:11:56.523 回答