Doing it with style
Absolutely NO javascript.
Just to see if this was possible using only CSS. A simple slideshow that is animated in Safari, Chrome, Opera and Firefox v4 beta. Just click the top image to see the next image in the stack.
When you get to the last image the slideshow starts again with the first image.
Internet Explorer IE7, IE8 and IE9 use a single line htc file to overcome the bug where it does not refresh the element when using :active with the general sibling selector. This is covered by two lines in the stylesheet.
Safari and Chrome are now able to keep the :focus styling even when the mouse button is released. This is done using just CSS.
11ht November 2011
The htc file has been removed and a single javascript line added to the body tag is used instead to force IE7 and IE8 to refresh the page when using :active with adjacent and general sibling selectors.
The code and the stylesheet has been updated to use my latest techniques to give a much smoother transition between images and to improve the wraparound when moving from the last image to the first. Safari gives the best results.
Because of all the time and effort spent in producing this demonstration I would ask that you respect my copyright.
Your donations keep CSS PLAY running.
If your donation is for the use of a demo then please email me with the demo url after making your donation.