Its probably possible using some type of javascript in the product listing page.
Image handler2 already has this built in to pop-up a larger image when you mouse over an image however.
The template only styles the look of your site. you'd need to look at other mods that might achieve what you're trying to do.