I'm trying to create a website for my association (I'm new to html, css and js), and I would like to be able to display text or images under certain conditions.
Let me explain: on my home page, I have a carousel that makes me scroll through 4 different images (each takes up the entire screen). And I would like, depending on the image on the screen, display different texts: as in the form of if / else if. Example: there is image 3 to display on the screen, I display "hello". If it is image 4, I display "bye". However, I don't know how to go about it, and I can't find an answer to my problem on the internet. I imagine I should be using js, but I have no idea how to go about it.
Thank you so much
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…