"Loading Image"-Image

So - I really need some help on this guys (and girls?) :slight_smile:

I have a Image gallery which, by it’s nature, requires to load a lot of
images at the same time. Instead of just showing an empty place, and
some text while the images is loading it would be really nice with a
“now loading” image which later gets replaced by the real image.
If you don’t understand me i think that deviantart have a feature like
this.

How do you do anything like this - the rails way?

thanks in advance

Henrik

You could use the CSS feature to put a “placeholder” image as the
background, and then when it loads the real image it will be on the top
of it so to speak.

the CSS Code looks something like this

.imagebox{
background-image: url (“somestockimage.jpg”);
background-repeat: no-repeat;
width: 100px;
height: 100px;}

Hope that helps,
Jessica

Sassy8877 wrote:

You could use the CSS feature to put a “placeholder” image as the
background, and then when it loads the real image it will be on the top
of it so to speak.

the CSS Code looks something like this

.imagebox{
background-image: url (“somestockimage.jpg”);
background-repeat: no-repeat;
width: 100px;
height: 100px;}

Hope that helps,
Jessica

That works. For my site, I don’t have a fixed width and height, so I use
javascript for that.