How Does the Haikubator Work?

PHP. One bit of code selects a random image from a directory. The image is placed as the background of an element on the webpage. Another bit of code selects a random line from a text file, of which each line is a separate haiku, and it goes onto the element with the background image. A little formatting with css, and that's it.

Click the picture to refresh!

Scampering upward
the squirrel commands the tree
horizons approach