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 | 29 | 30 | 31 |
Tags
- 따라다니는 배너
- FileSystemObject
- javascript
- ASP
- utf-8
- RTL88x2BU
- readonly
- form
- XMLHTTP
- ajax
- 무선랜카드
- DS718+
- Getrows
- submit
- PHP GCM
- jquery 레이어
- 크로스 컴파일
- AC1300
- jQuery
- replace
- 시놀로지
- include
- synology
- 커널
- println
- lsusb
- euc-kr
- disabled
- SQL Injection
- Injection
Archives
- Today
- Total
아는 것이 좋은 것이다.
[JavaScript] 모바일 회전 감지 스크립트 본문
<link rel="stylesheet" href="http://code.jquery.com/mobile/1.3.2/jquery.mobile-1.3.2.min.css" /> <script src="http://code.jquery.com/jquery-1.9.1.min.js"></script> <script src="http://code.jquery.com/mobile/1.3.2/jquery.mobile-1.3.2.min.js"></script> <script type="text/javascript"> $("document").ready(function() { $(window).trigger("orientationchange"); }); $(window).bind("orientationchange", function(e) { var orientation = window.orientation; if (orientation == 90 || orientation == -90) { alert("landscape"); } else { alert("portrait");
} }); </script>
'JavaScript' 카테고리의 다른 글
[JavaScript] 브라우저별 해상도 구하기 (0) | 2014.06.06 |
---|---|
[JavaScript] 확인 취소 스크립트 (0) | 2014.05.27 |
[JavaScript] 게시판 상세내용 열고 닫기 (0) | 2014.05.15 |
[JavaScript] id 값의 영역 버튼 클릭시 복사 (0) | 2014.05.09 |
[JavaScript] 이미지 사이즈변경 (리사이징) (0) | 2014.05.09 |
Comments