![]() |
|
|
+ Search |
![]()
|
Jul 12th, 2001 02:05
Jean-Bernard Valentaten, Per M Knutsen,
var loopArray = new Array
('fill', 'it', 'up', 'with', 'whatever', 'you', 'want');
function arrayLoop(index)
{
var i = index;
//here you do something with the Array e.g. alert it
alert(loopArray[i]);
if (i == loopArray.length - 1)
i = 0;
else
i++;
setTimeout("arrayLoop(" + i + ")", 5000);
}
HTH