Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums JavaScript Need help making transparent transition in slideshow Reply To: Need help making transparent transition in slideshow

#248289
Shikkediel
Participant

Because it was the basic path to the images that was used multiple times inside the array, I decided to take it out of there and apply it whenever the link itself is made. That way it only needs to be written out a single time and making the array more readable. You’ll notice I also appended .jpg after it when defining the new image path. Not sure why it would fail under other circumstances. Are you trying locally or online?

Edit – I left out http: as well which is valid and just a bit shorter too.