简体   繁体   中英

How to do this image zooming trick in a browser?

I would like to do the following trick in a browser:

Create three image files of different size (small, medium, large) from one picture.

  • First, display the small image in a browser.

  • When a user zooms in the small image replace it with the medium one.
    Now the user can scroll it within the window up and down, left and right.

  • When a user zooms out the small image replace it with the small one, etc.

I would prefer JavaScript (Flash is the second option). What tool would you recommend ?

A quick google search turns up:

http://www.intenseblog.com/design/8-amazing-javascript-image-zoom-scripts.html

and:

http://www.hotscripts.com/blog/javascript-zoom-scripts/

Several of these libraries appear to do what you want.

Would this work for you?

http://www.netzgesta.de/shiftzoom/

This might be for image data that is much larger than you are interested in.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM