Old 29-01-2006, 13:51   #1 (permalink)
Narate
Royalty™
 
Narate's Avatar
 
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
  Reply With Quote
Old 29-01-2006, 14:43   #2 (permalink)
Transmogrify
Rough Creep Arse™
 
Transmogrify's Avatar
 
Join Date: Jul 2005
Location: Vancouver, Canada
Posts: 1,888
Send a message via MSN to Transmogrify
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?
  Reply With Quote
Old 29-01-2006, 17:22   #3 (permalink)
Narate
Royalty™
 
Narate's Avatar
 
Join Date: Feb 2003
Location: Manchester (UK)
Posts: 3,248
Cheers I'll give it a bash
  Reply With Quote
Old 29-01-2006, 18:20   #4 (permalink)
Red Cap
senior member
 
Red Cap's Avatar
 
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;
}
  Reply With Quote
Old 29-01-2006, 22:41   #5 (permalink)
pgo
Senior Member
 
Join Date: Jan 2005
Posts: 12,340
^^^ Probably your best bet.

Also, who on earth designs their site for 1280x1024...95% of people will have horizontal scroll. How obnoxious. Like the site otherwise.
  Reply With Quote
Old 30-01-2006, 04:07   #6 (permalink)
Narate
Royalty™
 
Narate's Avatar
 
Join Date: Feb 2003
Location: Manchester (UK)
Posts: 3,248
Quote:
Originally Posted by pgo
Also, who on earth designs their site for 1280x1024...95% of people will have horizontal scroll. How obnoxious. Like the site otherwise.


Not following? the site is set in %'s
  Reply With Quote
Old 03-02-2006, 11:49   #7 (permalink)
iamtoby
Registered User
 
Join Date: Dec 2005
Location: London, UK
Posts: 11
I'm not sure if it's deprecated but you used to just use lowsrc, which is a low res file that loads before the larger one.

ie.
<img src="blah.jpg" lowsrc="smallblah.gif" width="" height="" alt="" />
  Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search


Contact Us - Web Design Forums - Archive - Top
Search Engine Optimization by vBSEO 3.0.0 RC8