$("#text-to-show") . load("text_to_show.htm", function(){
// the callback when the htm file is loaded
$(this).fadeIn();
});

That should do you; note: you may need to give #text-to-show a style of
display:none to start out.

On 11/25/07, Monkeytail <[EMAIL PROTECTED]> wrote:
>
>
> == Desired result:
> I want a html file to be loaded into a div element. When the file is
> injected, I want it to fade in.
>
> == Problem:
> I am a rookie when it comes to jQ (and js). I can't figure out how to
> extend the onload function with the fadeIn effect.
>
> == This is my jQ code:
> $(document).ready(function() {
>
>         $("p a") . click(function() {
>                 $("#text-to-show") . load("text_to_show.htm");
>         });
> });
>
> == Thanx
>



-- 
Benjamin Sterling
http://www.KenzoMedia.com
http://www.KenzoHosting.com
http://www.benjaminsterling.com

Reply via email to