RE: How can you set a mouse-over image change in PHP?

paulm2003 <[email protected]> 12 Sep 2003 08:11:17 -0000
Newsgroups gmane.comp.web.oscommerce.general
Message-ID <2cb6dad5d844d1af7d84170125460697@osCommerce-Forums>
This message was sent from: General Support
http://forums.oscommerce.com/viewtopic.php?p=228290#228290
----------------------------------------------------------------

Hi Chris,

I don't think PHP "knows" where the users mouse is hovering.
Javascripts does.(but I'm not a programmer so.......)

If your images are in a link, you can use CSS to do it.

for example add:
[code]td.productListing-data img {border: 4px #09f groove;}
td.productListing-data a:hover img {border: 4px red groove;}[/code]
to catalog/stylesheet.css

But you probably have to make some changes to osC (set classes or id's) to make it work only for the images you want it for.

temporary demo at:
http://www.televisiedokter.nl/catalog/

Paul