<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에서 해주시기 바랍니다.
| 번호 | 제목 | 글쓴이 | 날짜 | 조회 |
|---|---|---|---|---|
| 5752 | 10년 전 | 497 | ||
| 5751 | 10년 전 | 542 | ||
| 5750 | 10년 전 | 342 | ||
| 5749 | 10년 전 | 408 | ||
| 5748 | 10년 전 | 818 | ||
| 5747 | 10년 전 | 598 | ||
| 5746 | 10년 전 | 302 | ||
| 5745 | 10년 전 | 349 | ||
| 5744 | 10년 전 | 349 | ||
| 5743 | 10년 전 | 284 | ||
| 5742 | 10년 전 | 290 | ||
| 5741 | 10년 전 | 644 | ||
| 5740 | 10년 전 | 321 | ||
| 5739 | 10년 전 | 311 | ||
| 5738 |
프로그램은어려워
|
10년 전 | 932 | |
| 5737 | 10년 전 | 504 | ||
| 5736 | 10년 전 | 399 | ||
| 5735 | 10년 전 | 409 | ||
| 5734 |
잘살아보자
|
10년 전 | 610 | |
| 5733 |
잘살아보자
|
10년 전 | 567 | |
| 5732 |
잘살아보자
|
10년 전 | 967 | |
| 5731 |
잘살아보자
|
10년 전 | 317 | |
| 5730 |
|
10년 전 | 1283 | |
| 5729 |
잘살아보자
|
10년 전 | 547 | |
| 5728 |
잘살아보자
|
10년 전 | 367 |
댓글 작성
댓글을 작성하시려면 로그인이 필요합니다.
로그인하기