yoloyoli123 Posted September 11, 2022 Posted September 11, 2022 Site URL: https://www.yoloyoli.art/ I have four main colors that I use on my website. I would like to make the color of certain text change every time the page is visited to one of the four colors. I would assume to use an array and have it pick a random from that list and set it to the text color. However, I need help on going about this. Every attempt I made to create an array came with a syntax error. Got any ideas? Thanks!
Beyondspace Posted September 14, 2022 Posted September 14, 2022 On 9/12/2022 at 12:46 AM, yoloyoli123 said: Site URL: https://www.yoloyoli.art/ I have four main colors that I use on my website. I would like to make the color of certain text change every time the page is visited to one of the four colors. I would assume to use an array and have it pick a random from that list and set it to the text color. However, I need help on going about this. Every attempt I made to create an array came with a syntax error. Got any ideas? Thanks! I imagine that when client visit you site, it always pop-up a modal to pick the color. After picking color, the page will be set the appropriate style. Is it your requirement? BeyondSpace - Squarespace Website Developer 🖼️ Lightbox Studio (Pinch/Zoom images, videos - PDFs Lightbox - ...) </> 🗓️ Delivery Date Picker (Date picker form field) Gallery block 7.1 workaround </> 🤖 Ask me anything
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment