<h3>hover()함수 : enter와 leave</h3>
<p>
mouseenter + mouseleave
</p>
<h1 id="test1">hover Test !</h1>
<script>
$(function(){
$('#test1').hover(
function(){$(this).css('background','yellow')},
function(){$(this).css('background','green')}
);
});
</script>


'JQUERY > 함수' 카테고리의 다른 글
| 키보드관련//글자수세기 (0) | 2022.08.28 |
|---|---|
| 이벤트..mouseout. mouseover (0) | 2022.08.28 |
| 이벤트 연결함수...on.off (0) | 2022.08.28 |
| 요소 복사,삭제태그들....clone(),remove() (0) | 2022.08.28 |
| 요소추가. append, prepend, before, after (0) | 2022.08.28 |