R

풀스크린 스크립트

<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>​

 

풀스크린 검색시 나와있는 스크립트 정리 해봤습니다.

 

|
댓글을 작성하시려면 로그인이 필요합니다. 로그인

프로그램

+
제목 글쓴이 날짜 조회
10년 전 조회 1,266
10년 전 조회 1,181
10년 전 조회 897
10년 전 조회 1,218
10년 전 조회 992
10년 전 조회 761
10년 전 조회 1,367
10년 전 조회 829
10년 전 조회 1,116
10년 전 조회 791
10년 전 조회 636
10년 전 조회 2,032
10년 전 조회 1,118
10년 전 조회 1,144
10년 전 조회 917
10년 전 조회 1,209
10년 전 조회 1,077
10년 전 조회 802
10년 전 조회 1,279
10년 전 조회 1,714
10년 전 조회 1,115
10년 전 조회 995
10년 전 조회 1,032
10년 전 조회 953
10년 전 조회 1,637
10년 전 조회 1,542
10년 전 조회 596
10년 전 조회 986
10년 전 조회 570
10년 전 조회 934
10년 전 조회 2,418
10년 전 조회 944
10년 전 조회 2,991
10년 전 조회 1,645
10년 전 조회 1,252
10년 전 조회 618
10년 전 조회 968
10년 전 조회 1,254
10년 전 조회 1,677
10년 전 조회 3,018
10년 전 조회 1,815
10년 전 조회 1,967
10년 전 조회 2,443
10년 전 조회 4,047
10년 전 조회 1,653
10년 전 조회 802
10년 전 조회 2,497
10년 전 조회 927
10년 전 조회 1,163
10년 전 조회 1,924
10년 전 조회 822
10년 전 조회 852
10년 전 조회 3,152
10년 전 조회 854
10년 전 조회 722
10년 전 조회 699
10년 전 조회 622
10년 전 조회 1,148
10년 전 조회 884
10년 전 조회 758
10년 전 조회 866
10년 전 조회 1,368
10년 전 조회 2,222
10년 전 조회 1,275
10년 전 조회 1,537
10년 전 조회 2,047
10년 전 조회 1,450
10년 전 조회 1,269
10년 전 조회 1,169
10년 전 조회 4,066
10년 전 조회 822
10년 전 조회 1,151
10년 전 조회 1,761
10년 전 조회 1,202
10년 전 조회 2,914
10년 전 조회 1,153
10년 전 조회 1,071
10년 전 조회 1,150
10년 전 조회 4,725
10년 전 조회 1,023
10년 전 조회 2,552
10년 전 조회 1,861
10년 전 조회 2,499
10년 전 조회 2,073
10년 전 조회 2,814
10년 전 조회 976
10년 전 조회 1,236
10년 전 조회 3,045
10년 전 조회 1,417
10년 전 조회 793
10년 전 조회 1,814
10년 전 조회 1,546
10년 전 조회 1,279
10년 전 조회 1,221
10년 전 조회 1,452
10년 전 조회 1,101
10년 전 조회 727
10년 전 조회 1,533
10년 전 조회 2,006
10년 전 조회 1,528
🐛 버그신고