|
Ok i've looked all over the web but can't find anything that meet my needs.
First, what I need is basically a display random images with "-thumb" in the filename. The folder consists of files with "filename_001.jpg" and "filename_001-thumb.jpg". I must keep both the 001 and 001-thumb files in the same folder in order for my gallery to work.
Now I need a script that displays images with the -thumb in the filename. But this is just a part of the script i need.
What would fulfill the script that i need is
a code generator. Basically a script that generates <a href="pathto/filename_00#.jpg"><img src="pathto/filename_00#-thumb.jpg"></a>
where 00# would be generated randomly from 001 to the total files in the folder divided by 2. The result cannot be 0010, or 00100. It would have to be 010 and 100.
If no script meets my needs, I guess I can just use another gallery script.
|