교육2013. 7. 18. 18:04
Posted by 선한열심
JQuery2013. 7. 18. 17:23

on 안에 여러개의 이벤트를 사용할 수 있다.

 

<!DOCTYPE html>
<html>
<head>
<style>
.test { color: #000; padding: .5em; border: 1px solid #444; }
.active { color: #900;}
.inside { background-color: aqua; }
</style>
<script src="http://code.jquery.com/jquery-1.9.1.js"></script>
</head>
<body>
<div class="test">test div</div>
<script>$("div.test").on({
click: function(){
$(this).toggleClass("active");
},
mouseenter: function(){
$(this).addClass("inside");
},
mouseleave: function(){
$(this).removeClass("inside");
}
});</script>
</body>
</html>

'JQuery' 카테고리의 다른 글

$("#아이디 > li ") 와 $("#아이디 li )의 차이  (0) 2013.10.02
[JQuery]따라다니는 레이어  (0) 2013.10.01
jquery 그래프  (0) 2013.07.16
이벤트 생성 및 발생  (0) 2013.07.16
[펌]TR 이동시키기  (0) 2013.06.25
Posted by 선한열심
이클립스2013. 7. 18. 17:18

[출처] http://stackoverflow.com/questions/10157501/how-to-add-eclipse-todos-to-jsps

 

절차

1. Preferences (Window->Preferences) and

2. select General->Editors->Structured Text Edit->Task Tags.

3. 상단에 "Enable searching for Task Tags" 체크

4. Filters 탭 클릭하여 jsp 활성화

5. apply

Posted by 선한열심