Hello,
I am making a new website but cutting the code from previous one, as I want the same effect on the new site as was on the old. The effect in question can be viewed at http://www.nsclub.org/members/member.htm
I simply copied and pasted the JS code from the ImageChanger.js file to a new one, and changed only the filenames, but once it gets to the second of, say, 4 images, it stops and does not cycle around to the others. The original code is as follows, with the new one after that:

var imgs = new Array(
new img(3,"img1","gifs/jack.gif","gifs/triton.gif","gifs/holly.gif",""),
new img(2,"img2","gifs/rhonda.gif","gifs/prinz.gif","",""),
new img(4,"img3","gifs/allan.gif","gifs/gerro.gif","gifs/cloe.gif","gifs/april.gif","",""),
new img(3,"img4","gifs/brian.gif","gifs/britta.gif","gifs/smokey.gif",""),
new img(2,"img5","gifs/jim.gif","gifs/bruno.gif","",""),
new img(2,"img7","gifs/margie.gif","gifs/tunza.gif","",""),
new img(2,"img8","gifs/helene.gif","gifs/georgia.gif","",""),
new img(2,"img9","gifs/kim.gif","gifs/cody.gif","",""),
new img(2,"img10","gifs/linda.gif","gifs/dualli.gif","",""),
new img(2,"img11","gifs/lorena.gif","gifs/brooke.gif","",""),
new img(2,"img12","gifs/jason.gif","gifs/tomahawk.gif","",""),
new img(2,"img13","gifs/lindac.gif","gifs/krypton.gif","",""),
new img(2,"img14","gifs/andrew.gif","gifs/blue.gif","",""),
new img(2,"img15","gifs/art.gif","gifs/taboo.gif","","")
);

function startChange()
{

changePic();

setTimeout("startChange()", 3000);

}

function img(iCount, sHolder, sPath, sPath1, sPath2, sPath3)
{

this.count = iCount;
this.holder = sHolder;
this.path0 = sPath;
this.path1 = sPath1;
this.path2 = sPath2;
this.path3 = sPath3;
this.current = 0;

}

function changePic()
{

for(i=0;i<=imgs.length-1;i++){

if((i % 2) > 0)
{

setTimeout("", 500);

}

//alert(imgs[i].holder);

document.images[imgs[i].holder].filters[0].apply();

if(imgs[i].current + 1 < imgs[i].count)
{

//alert(imgs[i].current);

imgs[i].current += 1;

}
else
{

imgs[i].current = 0;

}

//alert("imgs[i].path" + imgs[i].current.toString());

document.images[imgs[i].holder].src = eval("imgs[i].path" + imgs[i].current.toString());

document.images[imgs[i].holder].filters[0].play();

}

}
__________________________________________________
__

New code:

var imgs = new Array(
new img(3,"img1","gifs/award_torbay.gif","gifs/award_torbay2.gif","gifs/award_torbay3.gif",""),
new img(2,"img2","gifs/kplogo.gif","gifs/satisfied_cust.gif","",""),
new img(4,"img3","gifs/allan.gif","gifs/gerro.gif","gifs/cloe.gif","gifs/april.gif","",""),
new img(3,"img4","gifs/brian.gif","gifs/britta.gif","gifs/smokey.gif",""),
new img(2,"img5","gifs/jim.gif","gifs/bruno.gif","",""),
new img(2,"img7","gifs/margie.gif","gifs/tunza.gif","",""),
new img(2,"img8","gifs/helene.gif","gifs/georgia.gif","",""),
new img(2,"img9","gifs/kim.gif","gifs/cody.gif","",""),
new img(2,"img10","gifs/linda.gif","gifs/dualli.gif","",""),
new img(2,"img11","gifs/lorena.gif","gifs/brooke.gif","",""),
new img(2,"img12","gifs/jason.gif","gifs/tomahawk.gif","",""),
new img(2,"img13","gifs/lindac.gif","gifs/krypton.gif","",""),
new img(2,"img14","gifs/andrew.gif","gifs/blue.gif","",""),
new img(2,"img15","gifs/art.gif","gifs/taboo.gif","","")
);

function startChange()
{

changePic();

setTimeout("startChange()", 3000);

}

function img(iCount, sHolder, sPath, sPath1, sPath2, sPath3)
{

this.count = iCount;
this.holder = sHolder;
this.path0 = sPath;
this.path1 = sPath1;
this.path2 = sPath2;
this.path3 = sPath3;
this.current = 0;

}

function changePic()
{

for(i=0;i<=imgs.length-1;i++){

if((i % 2) > 0)
{

setTimeout("", 500);

}

//alert(imgs[i].holder);

document.images[imgs[i].holder].filters[0].apply();

if(imgs[i].current + 1 < imgs[i].count)
{

//alert(imgs[i].current);

imgs[i].current += 1;

}
else
{

imgs[i].current = 0;

}

//alert("imgs[i].path" + imgs[i].current.toString());

document.images[imgs[i].holder].src = eval("imgs[i].path" + imgs[i].current.toString());

document.images[imgs[i].holder].filters[0].play();

}

}
____

Thanks for your help!