Hi, have you tried this ? http://flesler.blogspot.com/2008/01/jquerypreload.html
You preload the images, and with the callback onComplete, you swap the
background, or with onFinish you swap them all together.

Cheers
Ariel Flesler

On 22 ene, 06:26, Micky Hulse <[EMAIL PROTECTED]> wrote:
> Mika, that worked very well! Thanks for the help... It has definitely
> gotten me started in the right direction. I owe you one. :)
>
> Have a great night/day, and many many thanks for taking the time to
> help a noob! :D
>
> Cheers,
> M
>
> On Jan 21, 4:37 am, Mika Tuupola <[EMAIL PROTECTED]> wrote:
>
>
>
> > On Jan 21, 2008, at 10:02 AM, Micky Hulse wrote:
>
> > > A bit more info:
>
> > > The hardest part for me to figure-out is the best approach for knowing
> > > when all of the needed images are loaded... I think I can handle all
> > > the
> > > other aspects of the coding.
>
> > > Is there a good technique for knowing when a group of images has fully
> > > loaded?
>
> > One way would be topreloadimages sequentially one by one. When the
> > last one is loaded then you could be sure all images are fully loaded.
> > Something like:
>
> > -cut-
> > $(window).bind('load', function() {
> >         varpreload= new Array('image_1.png', 'image_2.png', 'image_3.png');
> >         var img = document.createElement('img');
> >         $(img).bind('load', function() {
> >                 if(preload[0]) {
> >                         this.src =preload.shift();
> >                 }  else {
> >                         /* all images have been loaded */
> >                 }
> >         }).trigger('load');});
>
> > -cut-
>
> > --
> > Mika Tuupolahttp://www.appelsiini.net/- Ocultar texto de la cita -
>
> - Mostrar texto de la cita -

Reply via email to