top of page

GALLERY

bottom of page
// Get the Multi State Box element by ID var multiStateBox = $w("#aboutUs"); // Set the initial state var currentState = 0; // Set the interval in milliseconds var interval = 5000; // Create a timer to change the state at regular intervals setInterval(function() { // Update the state currentState++; if (currentState >= multiStateBox.states.length) { currentState = 0; } // Set the new state multiStateBox.changeState(currentState); }, interval);