No-Library (pure JS), HTML, CSS, JavaScript
Mootools 1.4.5, HTML, CSS, JavaScript
ideally you'd use a texture atlas (google it) but if you're trying to use random textures this works. Lots of issue with this code. It's not compatible with context lost events an it uses lots of globals.
Mootools 1.4.4, HTML, CSS, JavaScript