| Home | Register | FAQ | Members List | Search | Today's Posts | Mark Forums Read |
|
|
#1 (permalink) |
|
Royalty™
Join Date: Feb 2003
Location: Manchester (UK)
Posts: 3,248
|
loading...
Whats the best way of achieving this kind of effect doo-dar? http://www.danielsenphoto.com/portfolio.php Loading background comes up behind the image, I reckon I could do with something similar for mine as the images loads pretty slow in some isntances. www.narate.co.uk |
|
|
|
|
|
#2 (permalink) |
|
Rough Creep Arse™
|
Just off the top of my head - really really small image (loading), an image placeholder div - <div id="placeholder"> <img src="hugefile.jpg" width="480" height="640"> </div> #placeholder { background-image: url(smallfile.gif); background-repeat: repeat; width: 480px; height: 640px; } Something like that might work? |
|
|
|
#4 (permalink) |
|
senior member
Join Date: Sep 2005
Location: auckland, nz
Posts: 274
|
howabout giving the img tag a background? then you wouldnt need the extra placeholder div? <img class="gallery" src="hugefile.jpg"> .gallery { display: block; background-image: url(smallfile.gif); background-repeat: repeat; width: 480px; height: 640px; } |
|
|
|
#6 (permalink) | |
|
Royalty™
Join Date: Feb 2003
Location: Manchester (UK)
Posts: 3,248
|
Quote:
Not following? the site is set in %'s |
|
|
![]() |