Hello,

Playing with Wallpaper.html, I want to make a theme that changes background randomly to any file within .theme/Wallpapers/ directory. I've done the changing image part fairly easily, but I don't know how to deal with the file sources.

The easiest way script-wise, is to just manually write an array of file names into the script, but that's terrible usability-wise. I wonder if it's possible, with JavaScript, to list the content of a directory and store it into an array?

I'm fairly new to WinterBoard theming, and I'm not very clear about its capability. I assume that it's using Safari's JavaScript engine, which I also know very little about. Any ideas?