Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | ||||||
2 | 3 | 4 | 5 | 6 | 7 | 8 |
9 | 10 | 11 | 12 | 13 | 14 | 15 |
16 | 17 | 18 | 19 | 20 | 21 | 22 |
23 | 24 | 25 | 26 | 27 | 28 |
Tags
- HTML
- JQuery
- 문자열포함여부
- disabled
- 웹프로그래밍
- parent of iframe
- mb_strimwidth
- 세션사용법
- mysql
- 쿠키
- 세션
- 시간계산
- accept
- File
- strtotime
- php
- ucfirst
- Selector
- CSS
- attr
- Meta Tag
- indexOf
- strpos
- element추가
- 이전주소
- date포맷
- input
- SubString
- Javascript
- date
Archives
- Today
- Total
목록button holding (1)
Heojju
[JavaScript] 더블클릭, 롱클릭 이벤트
위 버튼을 길게 누르거나 더블클릭 해보세요. $(document).ready(function(){ var timer; var istrue = false; function mouseDown(){ istrue = true; timer = setTimeout(function(){ holding();},3000); } function holding(){ if(timer) clearTimeout(timer); if(istrue){ alert('holding'); } } function mouseUp(){ istrue =false; } function dbClick(){ alert('double click'); } });
웹개발/JavaScript
2017. 6. 23. 13:30