Stuff
public javascript v1 · immutableNewImg = new Array('file1.jpg','file2.jpg','file3.jpg');//Starting image is Selectedvar StartFile = '<?php echo $filename; ?>';for(var i in NewImg) { File = NewImg[i].split('/'); File = File.pop(); if(File == StartFile) { break; }}document.write(i);var ImgNum = i;var ImgLength = NewImg.length - 1;