Great! Thank you very much JQuery Lover!

Much appreciated!

On Jan 17, 2:52 pm, jQuery Lover <ilovejqu...@gmail.com> wrote:
> Yeap, you can bind all images with .gallery class a .load() event like this:
>
> $('img.gallery').load(function(){
>   $(this.).removeClass('loading').show();
>
> });
>
> ----
> Read jQuery HowTo Resource  -  http://jquery-howto.blogspot.com
>
> On Fri, Jan 16, 2009 at 10:20 PM, jinscoe <jackins...@gmail.com> wrote:
>
> > Whoops! I'm so used to getting email notifications for discussions...I
> > just figured no one had replied! So sorry for not coming back.
>
> > Thank you both for your replies. I was wondering if that might be the
> > case JQuery Lover.
>
> > Would there be a way to generalize the .load for only images with a
> > certain class? I tried working with the .load before and was
> > unsuccessful, perhaps you might be able to give me a few pointers. For
> > example if I give an image a class of "gallery" as well as "loader" I
> > can set the background image for the "loader" class to a load icon.
> > And .load would fire when any image with the class of "gallery" loads
> > (right?).
>
> > I guess I could give "gallery' display:none by default? and then when
> > it loads I can remove that css and also remove the class "loader."
>
> > I'm pretty new to all this, so I'm probably way off in my logic! Any
> > more help would be appreciated....now to try and find the setting
> > where I get email notifications on reply!
>
> > Thanks so much again, and sorry it took me so long to reply!

Reply via email to