$('.aaa > img').mouseenter(function(){
$(this).attr("src","/wp-content/uploads/main_icon1_ov.png").stop(true,true).hide().fadeIn(600);
$('.aaa > p:nth-child(1) > span').css('color', '#6d3ee6');
});
$('.aaa > img').mouseleave(function(){
$(this).attr("src","/wp-content/uploads/main_icon1_out.png").stop(true,true).hide().fadeIn(600);
$('.aaa > p:nth-child(1) > span').css('color', '#4f4f4f');
});
'jQuery' 카테고리의 다른 글
[jQuery] 배열 정렬 및 역정렬 | sort(), reverse() (0) | 2018.03.03 |
---|---|
[jQuery] split 메소드 / 문자열 분할 배열 (0) | 2018.03.03 |
[jQuery] dom 제거 함수 remove(), empty(), detach() (0) | 2018.02.25 |
[jQuery] 연산자, 조건문, prompt, alert (0) | 2018.02.25 |
[jQuery] data 선택 및 수정 (0) | 2018.02.19 |