P

jQuery w3schools 한글판 강좌19 - Commonly Used jQuery Event Methods - mouseenter() mouseleave()

· 2017-03-10 (금) 23:52:06 · 2258

mouseenter()

mouseenter() 메소드는 한개의 이벤트 핸들러 함수를 한개의 HTML 요소에 붙여준다

그 함수는 마우스포인터가 HTML요소에 들어갈때 실행된다 

 

Example

$("#p1").mouseenter(function(){
    alert("p1 에 들어와음!");
});

mouseleave()

mouseleave() 메소드는 한개의 이벤트 핸들러 함수를 한개의 HTML 요소에 붙여준다

그 함수는 마우스 포인터가 HTML요소를 떠날때 실행된다

 

Example

$("#p1").mouseleave(function(){
    alert("잘가세요! p1을 지금 떠나시는군요!");
});
|
댓글을 작성하시려면 로그인이 필요합니다.

개발자팁

5,403건

개발과 관련된 유용한 정보를 공유하세요. 질문은 QA에서 해주시기 바랍니다.

+
분류 제목 글쓴이 날짜 조회
jQuery 17-03-18 조회 2,799
jQuery 17-03-18 조회 2,380
PHP 17-03-18 조회 4,405
jQuery 17-03-17 조회 2,250
jQuery 17-03-17 조회 2,296
jQuery 17-03-17 조회 2,151
jQuery 17-03-17 조회 3,156
PHP 17-03-16 조회 2,413
PHP 17-03-16 조회 2,244
PHP 17-03-16 조회 2,450
기타 17-03-16 조회 1.6만
OS 17-03-16 조회 3,529
jQuery 17-03-15 조회 2,582
jQuery 17-03-15 조회 2,652
jQuery 17-03-15 조회 2,755
jQuery 17-03-14 조회 2,549
jQuery 17-03-14 조회 2,677
jQuery 17-03-14 조회 3,630
PHP 17-03-13 조회 2,592
PHP 17-03-13 조회 2,386
PHP 17-03-13 조회 2,651
PHP 17-03-11 조회 2,378
PHP 17-03-11 조회 3,061
PHP 17-03-11 조회 2,732
jQuery 17-03-11 조회 2,725
jQuery 17-03-11 조회 2,827
jQuery 17-03-11 조회 2,249
jQuery 17-03-10 조회 2,259
jQuery 17-03-10 조회 2,255
jQuery 17-03-10 조회 2,628