Simple parameter change not working

I'm using
function(b){for(var c=1;c<7;c++)
in an "effects.js" script, for a slideshow that has 6 images, so c=1 starts w/the image labeled "1" in the slideshow.php script, and c<7 stipulates that there are 6 images, and c++ (I believe) states that it moves 1 at a time to the next image. When I add images in the slideshow.php file, and up the number stipulated here, as in c<13 (so there are 12 images in slideshow.php), my prev/pause/resume/next nav menu no longer works. In fact, it seems to stop working when the c<#ofimages goes from a single digit to a double digit. I am able to go up to 9, but not to 10 or beyond.

I have poured through the supporting scripts trying to find where I can clear this hurdle, to no avail. I want a lot of images in this slideshow, if I can. In addition to the slideshow.php, and the effects.js, there is also a parameters.js, and my style.css that contains all the #slideshow specs. Any advice?
Advice #1: don't post on a C++ forum for help with PHP and Javascript.
Advice #2: Make sure there isn't some sort of number padding going on like Image01.png, Image02.png, ..., Image99.png, ???
This is using all three languages, isn't it? There's no number padding. It's not that simple. Guess I shouldn't have called it "simple." I'll check another forum, since you can't help.
Topic archived. No new replies allowed.