Skip to content

Instantly share code, notes, and snippets.

@yrgoldteeth
Created June 18, 2009 18:48
Show Gist options
  • Save yrgoldteeth/132111 to your computer and use it in GitHub Desktop.
Save yrgoldteeth/132111 to your computer and use it in GitHub Desktop.
var i = 0;
var slide;
function SlideShow() {
Effect.Fade($( slide[i] ), { duration:5 });
i++;
if (i == slide.length) i = 0;
Effect.Appear($( slide[i] ), { duration:5, afterFinish: function () { SlideShow(); } });
}
Event.observe(window, 'load', function() {
$$('#myslideshow a').each(function(image){
$(image).hide();
});
slide = $('myslideshow').descendants();
Effect.Appear($( slide[0] ), { duration:1, afterFinish: function () { SlideShow(); } });
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment