You can make it work with PHP.
Just get a random Image Script like this one:
The above will load a random image from the "yourimagedir" directory and will refresh the page every 5 seconds.
Just change the variables accordingly and there you have a PHP/HTML Slideshow.
Hope it helps.