1) Script Title: PHP Photo Album script
2) Script URL (on DD): Script URL
3) Describe problem: is there a way to randomize the images?tnx
sorrycan't post link local web server only
![]()
1) Script Title: PHP Photo Album script
2) Script URL (on DD): Script URL
3) Describe problem: is there a way to randomize the images?tnx
sorrycan't post link local web server only
![]()
Please don't mind me. I am just posting a lot of nonsense.
Set this variable like so:
Go down a few lines and find these lines (black) and add the red ones shown to them:Code://Sort images by date? ("asc", "desc", or "") //"desc" for example causes the newest images to show up first in the gallery //"" disables this feature, so images are sorted by file name (default) var gsortorder="rand"
Code:if (gsortorder=="asc" || gsortorder=="desc") galleryarray.sort(sortbydate) else if (gsortorder=="rand") galleryarray.sort(function() {return 0.5 - Math.random();}) //thanks to Mike (aka Mwinter) :)
- John________________________
Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate
tnx![]()
Please don't mind me. I am just posting a lot of nonsense.
Bookmarks