Hi, I am using setInterval to create animations, and things were running smoothly until the last two FF updates. Now, some of the images are skipped, often, but not always, every other one. It does work perfectly in IE, and I did not expect that at all. I have looked over the web info, and the mozilla page, but cannot find my error. Wondering is this is a new bug.....
The main functional code is this:All of the variables are globals. Does anyone see the problem?Code:var frame_number = 0; var interval_id = window.setInterval("next_frame()",interval_delay); function next_frame() { document.images["image_holder"].src = image_array[frame_number].src; document.getElementById("date_holder").innerHTML = date_array[frame_number]; if (fish) { frame_number++; if (frame_number == image_array.length) { if (hold > 1) { hold--; frame_number--; } else { if (cycle == 0) { hold = pole; } frame_number = 0; } } } }



Reply With Quote

Bookmarks