"Chamnap" <chamnapchhorn@gmail.comwrote in message
news:1184059240.203065.102430@e16g2000pri.googlegr oups.com...
Quote:
Hello,
>
I have several images that need to be loaded dynamically based on user
interaction. Each image size is about 6000x1500 pixels. I see several
Yikes. Are you sure you want to present images that size in one chunk?
Quote:
sites they make the image blur, blur, blur, and the image become
No, they make the image grow, grow, grow on zooming in and shrink, shrink,
shrink on zooming out.
Quote:
clear. I want to know how to do this, or maybe you all have other
solutions better than this. Can anyone give me some suggestions and
the way how to implement?
When the user clicks the "zoom in" button (or clicks an area of the image),
you preload the larger image and set an interval to enlarge the image a few
pixels at a time until it reaches the size of the larger image. Hopefully,
by that time, the larger image is cached and changing the src of the now
blurry original will magically sharpen it. If not, the effect is less
pleasing.
None of this has anything to do with making the image load faster, though
you can create perceived speed by preloading the larger image on page load.