These are the words
const words = ["people", "places", "things", "times"]; const colors = ["people", "places", "things", "times"]; let index = 0; function changeWord() { const changingWord = document.getElementById("changing-word"); changingWord.textContent = words[index]; // Remove all previous color classes changingWord.className = ''; // Add the new color class based on the word changingWord.classList.add(colors[index]); index = (index + 1) % words.length; } setInterval(changeWord, 750);
// Source - https://stackoverflow.com/a/12450399 // Posted by John Kurlak // Retrieved 2026-12-03, License - CC BY-SA 3.0 $(function () { var messages = [], index = 0; messages.push('Message 1'); messages.push('Message 2'); messages.push('Message 3'); function cycle() { $('#some-id').html(messages[index]); index++; if (index === messages.length) { index = 0; } setTimeout(cycle, 3000); } cycle(); });

Charlotte Otters is a lot of things—the writer of this paragraph, for one. blahhhhhhhfnfldldldfsdghsjghsdkjghskdjgjksdghksdjghksdjhgksdjhgksjdgkdjshgkjsdhgkjsdhgkjsdhgkjsdhgkjhsdkghsdkjghkjsdhgkjsdhgkjsdhgkjdshgjkhsdgkjsdhgkjhsdkjghsdkghkdsjhgkdjsgkdjshgksdhg
blahhhhhhhfnfldldldfsdghsjghsdkjghskdjgjksdghksdjghksdjhgksdjhgksjdgkdjshgkjsdhgkjsdhgkjsdhgkjsdhgkjhsdkghsdkjghkjsdhgkjsdhgkjsdhgkjdshgjkhsdgkjsdhgkjhsdkjghsdkghkdsjhgkdjsgkdjshgksdhg
blahhhhhhhfnfldldldfsdghsjghsdkjghskdjgjksdghksdjghksdjhgksdjhgksjdgkdjshgkjsdhgkjsdhgkjsdhgkjsdhgkjhsdkghsdkjghkjsdhgkjsdhgkjsdhgkjdshgjkhsdgkjsdhgkjhsdkjghsdkghkdsjhgkdjsgkdjshgksdhg