Click here to Skip to main content
15,944,397 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
How to enlarge a picture pressing small image icon?
Posted
Comments
Sergey Alexandrovich Kryukov 24-Jul-12 14:33pm    
What exactly do you need? Enlarge (re-sample) on the server side? Let a browser to enlarge it? Or do you already have a small and big version of the same image?

Why icon, not just image? Do you really know what an icon is? If this is Web, most likely you need just images.
--SA

If you want a tooltip-like image to show up on mouseover, you could try the second method described here: http://cssglobe.com/post/1695/easiest-tooltip-and-image-preview-using-jquery/[^] (http://cssglobe.com/lab/tooltip/02/[^]). Change the hover event to click event and you get "pressing".
 
Share this answer
 
v2
Please see my comment to the question. It's not clear what you really need.

Anyway, please see my past answer with the code sample: zooming image at mouse over[^].

In this answer, I assume you have an image file, re-sample it down and store both version on your server. Then you can swap the two depending on the mouse position. If you need some other behavior, you can easily modify this code.

—SA
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900