Hi there! I have this piece of code for the Image Banner Module for my Password Page:
var example = [‘one’, ‘two’, ‘three’, ‘four’];
textSequence(0);
function textSequence(i) {
if (example.length > i) {
setTimeout(function() {
document.getElementById(“sequence”).innerHTML = example[i];
textSequence(++i);
}, 1000); // 1 second (in milliseconds)
} else if (example.length == i) { // Loop
textSequence(0);
}
}
Within the heading on the Image Module, code would read ‘Let’s get more’, where one variant above displays, and the word rotates each second.
I simply cannot work out where to place the relevant code to get it to function! Would appreciate any help I can get. Thank you.