The best hover effects are achieved with the :hover CSS pseudo class. For this technique to work, the target element needs to be subordinate to the hover element.
When the target is not subordinate, we can use javascript and the onmouseover attribute. Add the attribute to each img tag and specify a javascript function to execute. The function would set whatever .style properties are needed to achieve a highlight effect, such as changing the element’s background color.
You’ll also want to add an onmouseout attribute to restore the default state. It’ll take a little planning so a single function will work for all images. In some cases using jQuery can simplify the process.
Thread Starter
sipeki
(@sipeki)
Bcworkz,
Thank you for your reply. Will try and implement your helpful guidance.
Regards,
Simon