Printable View
You could do it in Flash. Here's an example
I can't understand why your trying to link the card reveal to a database, hardly random. Perhaps it's a card game tutorial?
Brilliant Egg!