-
jQuery : bind 여러 개의 함수를 하나로 묶기개발/WEB(js,html..) 2020. 12. 23. 17:31
<img> 태그에 버튼을 적용한다고 했을 때
$(function() {
$('img').bind({
mouseover :function(){
$('img').attr('src','../images/button2.jpg');
},
mouseout: function(){
$('img').attr('src','../images/button1.jpg');
},
click : function(){
alert("thanks to click this button!");
}
});
});
'개발 > WEB(js,html..)' 카테고리의 다른 글
jQuery 선택자 (0) 2020.12.23 [html] onclick 버튼 속성을 이용하여 다른 페이지로 이동하기 (0) 2020.12.23 [web] 이클립스에서 크롬/익스플로러로 테스트하기 (0) 2015.01.19 jsp 자바 404 페이지를 찾을 수 없습니다 / 페이지 안 뜸 / 빈 페이지 / 에러 디버깅(java/eclipse) (0) 2014.12.23 servlet 서블릿 등록방법 / xml, @annotation (0) 2014.12.15