Here is the code that creates new spiders. Is there another way I could have done this?
function replaceSpiders(){
regenerateID = setInterval(function(){
$('.spider-column').each(function(ind, column){
$(this).html('');
var result = getRandom();
var resultID = getRandom3();
if (result == 1){
$(this).append('<img class="true spider p' + resultID + '" src="images/animated-widow.gif">');
} else {
$(this).append('<img class="false spider p' + resultID + '" src="images/animated-jumping.gif">');
}
});
}, 4000);
}