试试这个
jQuery(function( $ ){
// Get a reference to the container.
var containerStep1 = $( "#step1" );
// Bind the link to toggle the slide.
$( ".impaye" ).click(
function( event ){
// Prevent the default event.
event.preventDefault();
// Toggle the slide based on its current
// visibility.
if (containerStep1.is( ":visible" )){
containerStep1.slideUp( 1000 );
} else {
containerStep1.slideDown( 1000 );
}
}
);
// CLOSE STEPS
$(".close-step1 img").attr("src", "http://4.bp.blogspot.com/_0AyNA9sRlIs/TAPH55KDj7I/AAAAAAAAIsU/_fjn6O2WguQ/s1600/424px-OCR-A_char_Hyphen-Minus.svg.png");
// STEP 1
$('.close-step1').click(function () {
$('#plus').empty();
$('.close-step1').clone().appendTo('#plus');
$('#plus .close-step1').addClass('plusStep1');
containerStep1.slideToggle("slow", function () {
if ($("#step1").is(':visible')) {
$(".close-step1 img").attr("src", "http://4.bp.blogspot.com/_0AyNA9sRlIs/TAPH55KDj7I/AAAAAAAAIsU/_fjn6O2WguQ/s1600/424px-OCR-A_char_Hyphen-Minus.svg.png");
}
else {
$(".close-step1 img").attr("src", "http://upload.wikimedia.org/wikipedia/commons/3/30/OCR-A_char_Plus_Sign.svg");
$('.plusStep1').bind('click',plustep1);
}
});
});
function plustep1() {
$('#plus').empty();
$('#step1').css('display','block');
$(".close-step1 img").attr("src", "http://4.bp.blogspot.com/_0AyNA9sRlIs/TAPH55KDj7I/AAAAAAAAIsU/_fjn6O2WguQ/s1600/424px-OCR-A_char_Hyphen-Minus.svg.png");
}
});