|
You can't use PHP to do what you are talking about. PHP is a server-side language, meaning that everything it does is done before the page loads and before the user interacts with the page.
You might be able to do it in pure CSS. Obviously you'd have to use the :hover pseudoclass, and you'd probably use something along the lines of display: block; on the correct image, but I can't think how to link them together at the moment, so maybe it isn't possible.
I think JavaScript is the best solution for this. True, users may turn it off, but I'm fairly sure that number is very low. You have to use the mouseover event, and you'd probably toggle your image styles between display: none; and display: block;.
__________________
The interlocking pieces of web development: usability, performance, accessibility, and standards.
|