dc_jt Posted February 4, 2008 Share Posted February 4, 2008 Hi Ive got a set of 7 images, 6 sets contains two images and 1 set contains three images. I want to display the images randomly but in sets, therefore if you click refresh the first set could be set three followed by set seven followed by set one etc. All images are static and are just displayed like below: <div class="imageElement"> <h4>Item 1 Title</h4> <p>Item 1 Description</p> <img src="assets/images/slideshow/vinyl1.jpg" class="full" /> </div> <div class="imageElement"> <h4>Item 1 Title</h4> <p>Item 1 Description</p> <img src="assets/images/slideshow/vinyl2.jpg" class="full" /> </div> <div class="imageElement"> <h4>Item 1 Title</h4> <p>Item 1 Description</p> <img src="assets/images/slideshow/retail1.jpg" class="full" /> </div> <div class="imageElement"> <h4>Item 1 Title</h4> <p>Item 1 Description</p> <img src="assets/images/slideshow/retail2.jpg" class="full" /> </div> <div class="imageElement"> <h4>Item 1 Title</h4> <p>Item 1 Description</p> <img src="assets/images/slideshow/devhoard1.jpg" class="full" /> </div> <div class="imageElement"> <h4>Item 1 Title</h4> <p>Item 1 Description</p> <img src="assets/images/slideshow/devhoard2.jpg" class="full" /> </div> <div class="imageElement"> <h4>Item 1 Title</h4> <p>Item 1 Description</p> <img src="assets/images/slideshow/exhibition1.jpg" class="full" /> </div> <div class="imageElement"> <h4>Item 1 Title</h4> <p>Item 1 Description</p> <img src="assets/images/slideshow/exhibition2.jpg" class="full" /> </div> <div class="imageElement"> <h4>Item 1 Title</h4> <p>Item 1 Description</p> <img src="assets/images/slideshow/backdrop1.jpg" class="full" /> </div> <div class="imageElement"> <h4>Item 1 Title</h4> <p>Item 1 Description</p> <img src="assets/images/slideshow/backdrop2.jpg" class="full" /> </div> <div class="imageElement"> <h4>Item 1 Title</h4> <p>Item 1 Description</p> <img src="assets/images/slideshow/vehicle1.jpg" class="full" /> </div> <div class="imageElement"> <h4>Item 1 Title</h4> <p>Item 1 Description</p> <img src="assets/images/slideshow/vehicle2.jpg" class="full" /> </div> <div class="imageElement"> <h4>Item 1 Title</h4> <p>Item 1 Description</p> <img src="assets/images/slideshow/welcomeworld1.jpg" class="full" /> </div> <div class="imageElement"> <h4>Item 1 Title</h4> <p>Item 1 Description</p> <img src="assets/images/slideshow/welcomeworld2.jpg" class="full" /> </div> <div class="imageElement"> <h4>Item 1 Title</h4> <p>Item 1 Description</p> <img src="assets/images/slideshow/welcomeworld3.jpg" class="full" /> </div> How would I randomise this? Thanks Quote Link to comment https://forums.phpfreaks.com/topic/89370-random-images-in-set-of-two/ Share on other sites More sharing options...
The Little Guy Posted February 4, 2008 Share Posted February 4, 2008 http://phpsnips.com/snippet.php?id=14 Quote Link to comment https://forums.phpfreaks.com/topic/89370-random-images-in-set-of-two/#findComment-457656 Share on other sites More sharing options...
dc_jt Posted February 4, 2008 Author Share Posted February 4, 2008 Thanks for the reply. I know how to do a random image but its the fact theyre in a set of TWO which im not sure of? Any ideas? Quote Link to comment https://forums.phpfreaks.com/topic/89370-random-images-in-set-of-two/#findComment-457739 Share on other sites More sharing options...
The Little Guy Posted February 4, 2008 Share Posted February 4, 2008 Will you always have these as apart of the file name? vinyl, retail, devhoard, exhibition, etc. Quote Link to comment https://forums.phpfreaks.com/topic/89370-random-images-in-set-of-two/#findComment-457815 Share on other sites More sharing options...
dc_jt Posted February 4, 2008 Author Share Posted February 4, 2008 Will you always have these as apart of the file name? vinyl, retail, devhoard, exhibition, etc. Well I could have anything really as these are static images so whatever is easiest? Quote Link to comment https://forums.phpfreaks.com/topic/89370-random-images-in-set-of-two/#findComment-457822 Share on other sites More sharing options...
dc_jt Posted February 5, 2008 Author Share Posted February 5, 2008 Anyone know? ??? Quote Link to comment https://forums.phpfreaks.com/topic/89370-random-images-in-set-of-two/#findComment-458536 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.