Copy link to clipboard
Copied
Hi there,
I am a 4th year student in university using dreamweaver for the first time and I am trying to make it so a single image when clicked on will swap to a different image, then when clicked on again will swap to a different image. For example, image 1 when clicked on will swap to image 2, and when clicked on again will swap to image 3, and when clicked on again will swap to image 4, etc. I was able to figure out how to do a single image swap, but I was wondering if it is at all possible to do multiple.
Thank you!!
Yes, you can do it quite easily using JavaScript. There's nothing built into Dreamweaver that will handle it for you, but I suggest you take a look at a lightbox solution, such as fancyBox.
Copy link to clipboard
Copied
Yes, you can do it quite easily using JavaScript. There's nothing built into Dreamweaver that will handle it for you, but I suggest you take a look at a lightbox solution, such as fancyBox.
Copy link to clipboard
Copied
You could combine Bootstrap's modal window with a carousel slider. Clicking arrows will cycle through images. See screenshot.
Tutorial:
Bootstrap Modal + Carousel Gallery - https://alt-web.com/