This little script crawls a given directory for files with extensions that are matching specified extensions. It then takes those images and outputs them as background images and fades between them.
Sample of the output HTML can be found at http://gregwhitehead.us/background/