On the homepage of this site - http://bit.ly/a3IoV5 - I have a large image fading JQuery gallery.
Here's the JQuery:
$('.fadein img').addClass('js');
$(function() {
$('.fadein').children().eq(0).appendTo('.fadein').show();
setInterval(function() {
$('.fadein :first-child').hide().appendTo('.fadein').fadeIn(2000);
}, 8000);
});
the CSS:
.js .fadein img { display: none; }
.js .fadein img:first-child { display: block; }
.fadein img { position: absolute; right: 0; top: 0; width: 1000px; height: 300px; }
and the HTML
<div class="fadein">
<img src="header1.png" />
<img src="header2.png" />
<img src="header3.png" />
<img src="header4.png" />
<img src="header6.png" />
<img src="header7.png" />
<img src="header9.png" />
<img src="header10.png" />
<img src="header12.png" />
</div>
I was hoping there was some sort of image loading trick that would help the loading speed of the page itself. Any help would be appreciated.