Jump to content

Random images in set of two


dc_jt

Recommended Posts

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

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.