HI..
I'm completely new to javascript & have recently started using "easy_background" to add a background slideshow to my startpage. Everything works perfectly as expected, but the images are only displayed in the order I have specified in my html. Is there any way I can make them be randomized instead ?? Like I said I'm completely new to javascript & could use some help. Many thanks in advanced for any replies or help. Here's the javescript I have in my html....
I'm completely new to javascript & have recently started using "easy_background" to add a background slideshow to my startpage. Everything works perfectly as expected, but the images are only displayed in the order I have specified in my html. Is there any way I can make them be randomized instead ?? Like I said I'm completely new to javascript & could use some help. Many thanks in advanced for any replies or help. Here's the javescript I have in my html....
HTML:
<script src="easy_background.js"></script>
<script>
easy_background("body",
{
slide: ["001.jpg", "002.jpg", "003.jpg", "004.jpg", "005.jpg", "006.jpg", "007.jpg", "008.jpg", "009.jpg", "010.jpg", "011.jpg", "012.jpg", "013.jpg", "014.jpg", "015.jpg", "016.jpg", "017.jpg", "018.jpg", "019.jpg", "020.jpg", "021.jpg", "022.jpeg", "023.jpg", "024.jpg", "025.jpg", "026.jpg","027.jpg",],
delay: [4000, 4000, 4000, 4000, 4000, 4000, 4000, 4000, 4000, 4000, 4000, 4000, 4000, 4000, 4000, 4000, 4000, 4000, 4000, 4000, 4000, 4000]
}
);
</script>
Last edited: