1) Script Title: Simple Controls Gallery v1.3
2) Script URL (on DD):
http://www.dynamicdrive.com/dynamici...plegallery.htm
3) Describe problem:
Is it possible for the simpleGallery to load an random image?
1) Script Title: Simple Controls Gallery v1.3
2) Script URL (on DD):
http://www.dynamicdrive.com/dynamici...plegallery.htm
3) Describe problem:
Is it possible for the simpleGallery to load an random image?
Do you mean scramble the actual order of the images (so the 1st image is a different one each time), or retain the order of the images, just load one randomly (ie: 3rd image the first time, 1st image the 2nd etc)?
DD Admin
Thanks for your quick response.
retain the order of the images, just load one randomly (ie: 3rd image the first time, 1st image the 2nd, 5th image the 3rd etc.
Last edited by roytje9; 03-30-2009 at 06:09 AM.
Sure, just find the below line inside the script:
and change that to:Code:setting.curimage=(setting.persist)? simpleGallery.routines.getCookie("gallery-"+setting.wrapperid) : 0
Code:setting.curimage=(setting.persist)? simpleGallery.routines.getCookie("gallery-"+setting.wrapperid) : Math.floor(Math.random()*setting.imagearray.length)
DD Admin
roytje9 (03-23-2009)
Thank you for your help i really appreciate it.
Is it also possible to load every image random not just the first one?
Last edited by roytje9; 03-25-2009 at 07:56 AM.
How is it also possible to scramble the actual order of the images?
Bookmarks