Velo Code:
$w.onReady(function () {
var states = ['box2', 'box1'];
var stateNumber = 0;
function slideShow() {
$w('#multiStateBox1').changeState(states[stateNumber]);
if (stateNumber<states.length - 1) {
stateNumber++;
} else {
stateNumber = 0;
}
setTimeout(slideShow,6000);
}
slideShow();
});
Comments