<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년 전 | 486 | ||
| 5751 | 10년 전 | 531 | ||
| 5750 | 10년 전 | 329 | ||
| 5749 | 10년 전 | 405 | ||
| 5748 | 10년 전 | 803 | ||
| 5747 | 10년 전 | 578 | ||
| 5746 | 10년 전 | 293 | ||
| 5745 | 10년 전 | 336 | ||
| 5744 | 10년 전 | 341 | ||
| 5743 | 10년 전 | 278 | ||
| 5742 | 10년 전 | 284 | ||
| 5741 | 10년 전 | 633 | ||
| 5740 | 10년 전 | 312 | ||
| 5739 | 10년 전 | 304 | ||
| 5738 |
프로그램은어려워
|
10년 전 | 919 | |
| 5737 | 10년 전 | 497 | ||
| 5736 | 10년 전 | 394 | ||
| 5735 | 10년 전 | 397 | ||
| 5734 |
잘살아보자
|
10년 전 | 602 | |
| 5733 |
잘살아보자
|
10년 전 | 556 | |
| 5732 |
잘살아보자
|
10년 전 | 952 | |
| 5731 |
잘살아보자
|
10년 전 | 307 | |
| 5730 |
|
10년 전 | 1278 | |
| 5729 |
잘살아보자
|
10년 전 | 541 | |
| 5728 |
잘살아보자
|
10년 전 | 359 |
댓글 작성
댓글을 작성하시려면 로그인이 필요합니다.
로그인하기