1

I need to apply this to images that are selected by jQuery selector for example $("img"), should apply this to all images in page.

newbie
  • 24,286
  • 80
  • 201
  • 301

3 Answers3

0

I guess you can do like this.

create an initial layout with the following:

  1. Image that you are loading with visibility:hidden;

  2. div with loading message.

  3. jQuery's domready show the image and hide the div.

Is this okay?

Tommy
  • 1,960
  • 1
  • 19
  • 32
0

There is a tutorial at

http://jqueryfordesigners.com/image-loading/

that you would want to supplement with an each() loop in $("img")

Justin Wignall
  • 3,490
  • 20
  • 23