I am trying to code a simple slider with a fade effect using .js but I am stuck;
I just cant figure out where the error in my logic is:
I have an array ( the list of images) and another array which I am using to cache image objects.
the slider() function checks for and skips missing images, adds a new image to the container and calls the fade() function.
fade() gets an image node list of the target container. the count of which should be 2: the previous image and the one that slider() added.
fade() then decreases the opacity of the first image until it reaches 0, then it removes that image completely, waits for a set interval and calls fader() for the next image in the cache array, so the loop continues.
any insight would be appreciated
code here: http://raym31.home.comcast.net/fader/