well using "this" saves a call the selector function, and chaining
commands let u continue to use the same object. you could also do this

$("#logo").click(function() {
      var $this = $(this); //a normal variable holding a jquery
object, give it the dollar sign to indicate that
      $this.fadeOut("slow");
      $this.animate({opacity: 0.0}, 500 );
      $("#content").fadeIn("slow");

});

On Jan 25, 5:04 am, tlob <[EMAIL PROTECTED]> wrote:
> Thanks a lot!
> Chrismarkx, tell me why using your solution? What is the advantage?
>
> Charles:I put the project online: look here donkeyshot.ch
>
> Thanks again!
> tom
>
> On Jan 25, 1:18 am, chrismarx <[EMAIL PROTECTED]> wrote:
>
> > well for starters, i would write your first function like this:
>
> > $("#logo").click(function() {
> >       $(this).fadeOut("slow").animate({opacity: 0.0}, 500 );
> >       $("#content").fadeIn("slow");
>
> > });
>
> > but doesnt fadeOut already set the opacity to 0?

Reply via email to