Show images in random order

  • 1
  • Idea
  • Updated 3 years ago
  • Not Planned
  • (Edited)
Is there a way to have the images content randomly select images?
Photo of Load King

Load King

  • 72 Points

Posted 3 years ago

  • 1
Photo of Ray Durkin

Ray Durkin

  • 3,480 Points 3k badge 2x thumb
Hi there - at this time we don't have a mechanism for randomizing images.  But thank you for posting here!  It will be interesting to see how many other members of the community are interested in this feature.
Photo of Tim Seynaeve

Tim Seynaeve

  • 130 Points 100 badge 2x thumb
I would very much like this option too!
Photo of HSuarez

HSuarez

  • 11,896 Points 10k badge 2x thumb
It would be interesting to see if there are other users with examples of randomizing images in their presentations - be it hosted in third party servers or Rise Storage.

Hannah | Community Success | Priority Support
Photo of Carl Schultz

Carl Schultz

  • 242 Points 100 badge 2x thumb
Here is my application for this feature.... I have a folder with say 40+ images.  I limit the display to 60 seconds.  We always see the same images since it displays in alphabetical order.  Randomizing would increase the chances of seeing all the images over time.  It would also make the schedule more dynamic and engaging.

Additionally, it would be helpful to be able to specify the number of images to display before moving on.  As an example, we are collecting TOYS FOR TOTS.  I have two different graphics for this promotion.  I would like to randomly display one OR the other but not both.  By specifying a single graphic, randomized, and pointing to a folder with two graphics, I can achieve what I want.

Our primary use is for sharing our employees community involvement for either service projects or coaching children's sports teams.
Photo of Ashleigh

Ashleigh

  • 3,740 Points 3k badge 2x thumb
Thank you for your feedback Carl! Rotating between images would indeed be a cool feature.

I did find this code while scavenging, although I'm yet to test it out. Feel free to try it using our HTML widget. You will need to manually paste the image links, however:

<script type="text/javascript"><!--
var img = new Array();

// Add links to the pictures here, duplicate a line and add between the double-quotes
img.push(new Array("1.bmp", "http://linkForImg1.com"));
img.push(new Array("2.bmp", "http://linkForImg2.com"));
img.push(new Array("3.bmp", "http://linkForImg3.com"));
img.push(new Array("4.bmp", "http://linkForImg4.com"));
img.push(new Array("5.bmp", "http://linkForImg5.com"));

// How many random pictures you want to display
var num = 1;

// The part where the images are randomed and printed to screen
for(i=0;i<num;i++) {
rand = Math.floor(Math.random()*img.length);
document.write("<a href=\""+img[rand][1]+"\"><img src=\"" + img[rand][0] + "\" /></a>");
}
//--></script>