Skip to main content
Participant
March 10, 2018
Answered

Swapping a single image multiple times in dreamweaver

  • March 10, 2018
  • 2 replies
  • 445 views

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!!

    This topic has been closed for replies.
    Correct answer David_Powers

    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.

    2 replies

    Nancy OShea
    Community Expert
    Community Expert
    March 11, 2018

    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/

    Nancy O'Shea— Product User & Community Expert
    David_Powers
    David_PowersCorrect answer
    Inspiring
    March 11, 2018

    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.