<script>
function AutoScreen(el){
var doc = document.fullscreenElement;
var moz = document.mozFullScreenElement;
var webkit = document.webkitFullscreenElement;
var ms = document.msFullscreenElement;
if (!doc && !moz && !webkit && !ms) {
fullscreen(el);
} else {
exitscreen();
}
}function fullscreen(el){
if (el.requestFullscreen) {
el.requestFullscreen();
} else if (el.msRequestFullscreen) {
el.msRequestFullscreen();
} else if (el.mozRequestFullScreen) {
el.mozRequestFullScreen();
} else if (el.webkitRequestFullscreen) {
el.webkitRequestFullscreen(Element.ALLOW_KEYBOARD_INPUT);
}
}
function exitscreen(){
var doc = document;
if (doc.exitFullscreen) {
doc.exitFullscreen();
} else if (doc.msExitFullscreen) {
doc.msExitFullscreen();
} else if (doc.mozCancelFullScreen) {
doc.mozCancelFullScreen();
} else if (doc.webkitExitFullscreen) {
doc.webkitExitFullscreen();
}
}
</script><a href="#"onclick="AutoScreen(document.body)">FullScreen</a>
풀스크린 검색시 나와있는 스크립트 정리 해봤습니다.
게시판 목록
팁게시판
질문은 상단의 QA에서 해주시기 바랍니다.
| 번호 | 제목 | 글쓴이 | 날짜 | 조회 |
|---|---|---|---|---|
| 5477 |
잘살아보자
|
11년 전 | 737 | |
| 5476 |
잘살아보자
|
11년 전 | 1449 | |
| 5475 |
잘살아보자
|
11년 전 | 1222 | |
| 5474 |
잘살아보자
|
11년 전 | 1964 | |
| 5473 |
잘살아보자
|
11년 전 | 3626 | |
| 5472 |
잘살아보자
|
11년 전 | 3115 | |
| 5471 |
잘살아보자
|
11년 전 | 3570 | |
| 5470 |
잘살아보자
|
11년 전 | 1363 | |
| 5469 | 11년 전 | 3527 | ||
| 5468 | 11년 전 | 1137 | ||
| 5467 | 11년 전 | 793 | ||
| 5466 | 11년 전 | 2931 | ||
| 5465 |
잘살아보자
|
11년 전 | 1258 | |
| 5464 |
잘살아보자
|
11년 전 | 676 | |
| 5463 |
잘살아보자
|
11년 전 | 3009 | |
| 5462 |
잘살아보자
|
11년 전 | 2857 | |
| 5461 |
잘살아보자
|
11년 전 | 719 | |
| 5460 |
잘살아보자
|
11년 전 | 3363 | |
| 5459 |
잘살아보자
|
11년 전 | 832 | |
| 5458 | 11년 전 | 1032 | ||
| 5457 | 11년 전 | 1718 | ||
| 5456 | 11년 전 | 966 | ||
| 5455 | 11년 전 | 2460 | ||
| 5454 | 11년 전 | 3074 | ||
| 5453 | 11년 전 | 5746 |
댓글 작성
댓글을 작성하시려면 로그인이 필요합니다.
로그인하기