I want to take an image and show it on screen (extremely simple website) for 3 seconds. The user would then click a button (I don't need code for these.. just the timer) for whether they recognized the image or not.
It doesn't have to be PHP, I've just been using it for most of the application so far. Essentially, I'll have a placeholder "white" image (say 500 px x 500 px) and I'll need the source to change to a different image (easy enough, and would be the same size image).
The issue: I only want the image to stay for 3 seconds (exactly) and then reload the "white" placeholder.
Is there a timed function in PHP? Or jQuery, javascript.. anything like that?
There is microtime
to time out something, but can I set the PHP to do something after a specific amount of time?
Any ideas would be greatly appreciated! I'd post code but it wouldn't really help to explain the situation...
Thank you!