[jQuery] Re: Preloading an image before further handling

2007-09-17 Thread To
It works with Theodore's code... Sweet! Thanks, To On Sep 16, 5:10 pm, "Theodore Ni" <[EMAIL PROTECTED]> wrote: > Instead of using $(document).ready( ... ), you can try to use > $(window).load( ... ): > > $(window).load(function() { > $("#photo").fadeIn("slow"); > > }); > > I believe that w

[jQuery] Re: Preloading an image before further handling

2007-09-16 Thread Theodore Ni
Instead of using $(document).ready( ... ), you can try to use $(window).load( ... ): $(window).load(function() { $("#photo").fadeIn("slow"); }); I believe that will wait until the image has been loaded. On 9/16/07, To <[EMAIL PROTECTED]> wrote: > > > Hello all, > > I'm looking for a while to

[jQuery] Re: Preloading an image before further handling

2007-09-16 Thread Benjamin Sterling
Try $("#photo").load(function(){ $(this).fadeIn(); }) On 9/16/07, To <[EMAIL PROTECTED]> wrote: > > > Hello all, > > I'm looking for a while to preload an image before further handling. > In example, I want my visitors to enter a HTML-page with a (quiet big) > image and give this image a fade in