If any of the JPG files have spaces in their names, clicking on the corresponding thumbnail image opens the first image rather than the correct image.
The problem is that after Param = Param.substring(1,Param.length); Param contains %20 in place of each of the spaces, so the following for loop does not find a match.
The solution is to add the following statement prior to the for loop: Param = Param.replace(/%20/g, " ");
|
Thank you for pointing this out. I've never used filenames with spaces, so I wasn't aware of it. Please take care of it by removing spaces from the file name, etc. |
|