[jQuery] Re: Function won't fire on load...

2010-01-15 Thread knal
Thanks a lot, i've also implemented the $(document).ready part! Thanks a lot guys!! On Jan 14, 7:41 pm, JT wrote: > I think this might work for you: > > (function($){ > >     $.fn.extend({ >         initSlides: function(){ >             var t = $(this).attr("id"); >             $("#" + t + " im

[jQuery] Re: Function won't fire on load...

2010-01-14 Thread JT
I think this might work for you: (function($){ $.fn.extend({ initSlides: function(){ var t = $(this).attr("id"); $("#" + t + " img").hide(); } }); $(document).ready(function(){ if (!$("div.introbody").length) { $(".project")

[jQuery] Re: Function won't fire on load...

2010-01-14 Thread knal
Darn, you are so right! Of course it makes sense once you know it. Thanks a lot!! On Jan 14, 10:01 am, Gus Waddell wrote: > Hi Knal, > > You need to have the function available before you try and call it. Try > putting the $.fn.extend at the top of your script... > > -- > > > > > $