Jquery show preloader for every image?
Posted
by mathiregister
on Stack Overflow
See other posts from Stack Overflow
or by mathiregister
Published on 2010-05-13T13:32:23Z
Indexed on
2010/05/13
13:34 UTC
Read the original article
Hit count: 249
jQuery
|JavaScript
Hey guys, I've a website with a lot of images:
<img class='thumb' src=thumbs/image1.jpg/>
<img class='thumb' src=thumbs/image2.jpg/>
<img class='thumb' src=thumbs/image3.jpg/>
<img class='thumb' src=thumbs/image4.jpg/>
I wonder if I can display a loading-div for every single image and when it's loaded the div hides? I'm using jquery for most of my animations. Can i solve that with jquery.
It would be cool if every image shows this loading-div centered in the middle of the image. When the image is loaded the div should hide!
Is that possible? Thank you for your help!
© Stack Overflow or respective owner