2010-10-20 4 views

Répondre

6

Mettre chacun dans une fonction de rappel pour l'action précédente:

$("#show-sidebar").click(function() { 
    $(this).fadeOut("fast", function() { 
     $("#sidebar").animate({ 
      marginLeft: "0" 
     }, "fast", function() { 
     $("#content").toggleClass("full"); 
     }); 
    }); 
}); 
4
$("#show-sidebar").click(function() { 
     $(this).fadeOut("fast", function() { 
      $("#sidebar").animate({ 
       marginLeft: "0" 
      }, "fast", function() { 
       $("#content").toggleClass("full"); 
      }); 
     }); 
    }); 
Questions connexes