top of page
Forum Posts
taqtech
Mar 20, 2020
In Coding with Velo
I used this code to let my slideshow start with a random image within the slides; $w.onReady(function () {
let rnd = Math.floor(Math.random() * 7);
$w("#slideshow1").changeSlide(rnd)
.then( (newSlide) => {
$w('#slideshow1').show()
} );
}); It works fine except the next image is not random but rather sequential ( the next slide in the list) I am a novice where coding is concerned and was wondering what help can be offered to allow this random function in the slideshow. thanks in advance
0
5
54
taqtech
More actions
bottom of page