Shermain Posted February 10, 2023 Share Posted February 10, 2023 I hired a coder to code a word carousel for me via JavaScript (see below). //javascript code var words = ["Be seen", "Celebrate", "Be bolder", "Connect", "Pursue", "Be uniquely You", "Think Limitless", "Expand Deeply", "Fly Further", "Lead with Love", "Dream again", "Impact"]; var currentWord = 0; var slideInterval = setInterval(nextSlide, 500); function nextSlide() { document.querySelector("#slide").innerHTML = words[currentWord]; currentWord = (currentWord + 1) % words.length; } I've copy and pasted the code into the code block. I've chosen HTML, disabled Display Source code, saved, and opened an incognito window it only shows the code. I've chosen the JavaScript option and saved and I still have the same issue. I'm sure there's an easy fix. Any help would be appreciated. Link to comment
paul2009 Posted February 10, 2023 Share Posted February 10, 2023 (edited) 3 minutes ago, Shermain said: I've copy and pasted the code into the code block. JavaScript code should be inserted between <script> and </script> tags in HTML. Edited February 10, 2023 by paul2009 About me: I've been a SQSP User for 18 yrs. I was invited to join the Circle when it launched in 2016. I have been a Circle Leader since 2017. I don't work for Squarespace. I value honesty, transparency, diversity and good design ♥. Work: I founded and run SF.DIGITAL, building Squarespace Extensions to supercharge your commerce website. Content: Views and opinions are my own. Links in my posts may refer to SF.DIGITAL products or may be affiliate links. Forum advice is free. You can thank me by clicking one of the feedback emojis below. Coffee is optional. Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment