I work with div, in which there are any number of elements img. Right now, everyone imghas the following CSS:
#content > img {
display: none;
position: absolute;
top: 0px;
left: 0px;
}
And the images can be cyclic with a function that shows and hides them in turn. However, when loading each image, I would like to display the image "loading ...". I would like to use JavaScript / jQuery to replace the source of each incomplete image for the image "loading ...", still allowing it to be downloaded. What is a common and medium way to do this?
source
share