I\'ve written a function that changes the css positioning of a div
I\'ve been successfully using setTimeout to call the function at a specific interval
NOW what
Based on @Kolink's explanation, you can try
for (var x = 0; x < 28; x++){ setInterval(function(){ var local = x; //anchor the variable changeDirection(divlist[local])}, divs[divlist[local]].speed); }); }
Hope this helps.