September 8, 201115 yr My client whats a slide show which can choose random photos at any time. But the first one is always first.
September 8, 201115 yr where are you getting the images from? If it's from a database then pull them into an array and sort that randomly.....except for the first image. Display the first image then read the array to display the others. Similarly you could probably scan a directory into an array and sort that. All in lovely PHP.
September 8, 201115 yr Yeah it depends on where the images are coming from - are they stored in a directory? in a database? or do you mean you have a set of images that you want to play in a random order?
September 8, 201115 yr Author Its coming from like this with some jqueary: <script type="text/javascript"> $(document).ready(function(){ $('#placeholder').crossSlide({ sleep: 2, fade: 1 }, [ { src: 'images/slide0.jpg' }, { src: 'images/slide1.jpg' }, { src: 'images/slide2.jpg' }, { src: 'images/slide3.jpg' }, { src: 'images/slide4.jpg' }, { src: 'images/slide5.jpg' }, { src: 'images/slide6.jpg'}, { src: 'images/slide7.jpg' }, { src: 'images/slide8.jpg' }, { src: 'images/slide9.jpg' }, { src: 'images/slide10.jpg' }, { src: 'images/slide11.jpg' }, { src: 'images/slide12.jpg' }, { src: 'images/slide13.jpg'} ]); }); </script> Yeah well i need to learn PHP so if you have a turorial I create one. Database never created one in database Edited September 8, 201115 yr by Vulcan
September 8, 201115 yr If you have a set number of slides like this, I would suggest using BXSlider and then checking out the Options and API - that allows a randomStart function
September 8, 201115 yr Author it needs to be a slide show not a slider Edited September 8, 201115 yr by Vulcan
September 8, 201115 yr change transitions/mode to Fade and viola - it fades in and out instead of sliding Read the API & Options
Create an account or sign in to comment