两张图片互相切换

图片切换

$('.selectarea img').click(function () {
if ($(this).attr("src") == "/Content/images/persornalZL/select01.jpg") {
$(this).attr("src", "/Content/images/persornalZL/select02.jpg");
}
else {
$(this).attr("src", "/Content/images/persornalZL/select01.jpg");
}
})

 背景图切换

  $(this).find('.down').toggleClass("top");        

原文地址:https://www.cnblogs.com/zhouyx/p/5763629.html