Hot spot image

+1


source to share


2 answers


this is probably what you are looking for, have a look at the standard scaling example:



http://www.mind-projects.it/projects/jqzoom/

+2


source


I think it's pretty simple and you could write yourself something cool. I'll just give pointers here, feel free to ask questions if I don't understand.

With the mouse on the full shoe, set its position (X, Y) relative to it and change the position of the background in the zoom window. The zoom box will have a full size shoe as a background image.

You will need to do some calculations, for example if the mouse is at (10,10) and the image is twice as large as the preview, you want to display it at (20,20), something like this. The same goes for specific cases (corners, borders ...) and if you want the mouse pointer to be in the center of the window. This is more math than programming ^^



Hope it helps

edit: of course, if you don't want to do it manually, John's answer is better for you!

0


source







All Articles