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

#248385
Shikkediel
Participant

Hey… I discovered a mistake in the code that I think I copied. First the element is defined as myImage:

var myImage = document.getElementById('mySlide');

But later it is referred to as mySlide instead. This happens to still work because an id can become a global variable, is what I only discovered last week. But is isn’t really correct to do. So here’s an improved version that I added some other modern support to:

Demo