I need to alternate between two sets of images using JavaScript. To achieve this, I have to use CSS to set the position of each image to absolute so that each new image replaces the old one as it cycles through.
My goal is to arrange the image sets in an HTML table, but when I don't specify positions in the CSS, the sets overlap. On the other hand, when I set positions, they do not adhere to the table due to the absolute positioning.
For those interested in seeing the code, I have created a JSFiddle: http://jsfiddle.net/n342aadc/3/