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,258
10년 전 조회 1,177
10년 전 조회 888
10년 전 조회 1,208
10년 전 조회 988
10년 전 조회 753
10년 전 조회 1,360
10년 전 조회 822
10년 전 조회 1,109
10년 전 조회 786
10년 전 조회 631
10년 전 조회 2,018
10년 전 조회 1,110
10년 전 조회 1,136
10년 전 조회 912
10년 전 조회 1,206
10년 전 조회 1,066
10년 전 조회 794
10년 전 조회 1,274
10년 전 조회 1,708
10년 전 조회 1,110
10년 전 조회 986
10년 전 조회 1,029
10년 전 조회 944
10년 전 조회 1,632
10년 전 조회 1,532
10년 전 조회 585
10년 전 조회 978
10년 전 조회 561
10년 전 조회 928
10년 전 조회 2,409
10년 전 조회 941
10년 전 조회 2,985
10년 전 조회 1,634
10년 전 조회 1,243
10년 전 조회 607
10년 전 조회 956
10년 전 조회 1,246
10년 전 조회 1,674
10년 전 조회 3,008
10년 전 조회 1,807
10년 전 조회 1,962
10년 전 조회 2,440
10년 전 조회 4,039
10년 전 조회 1,648
10년 전 조회 794
10년 전 조회 2,489
10년 전 조회 918
10년 전 조회 1,151
10년 전 조회 1,917
10년 전 조회 817
10년 전 조회 841
10년 전 조회 3,147
10년 전 조회 842
10년 전 조회 714
10년 전 조회 692
10년 전 조회 613
10년 전 조회 1,136
10년 전 조회 880
10년 전 조회 752
10년 전 조회 854
10년 전 조회 1,356
10년 전 조회 2,210
10년 전 조회 1,261
10년 전 조회 1,531
10년 전 조회 2,038
10년 전 조회 1,442
10년 전 조회 1,264
10년 전 조회 1,162
10년 전 조회 4,061
10년 전 조회 818
10년 전 조회 1,149
10년 전 조회 1,755
10년 전 조회 1,196
10년 전 조회 2,908
10년 전 조회 1,144
10년 전 조회 1,062
10년 전 조회 1,141
10년 전 조회 4,717
10년 전 조회 1,015
10년 전 조회 2,544
10년 전 조회 1,849
10년 전 조회 2,494
10년 전 조회 2,057
10년 전 조회 2,805
10년 전 조회 971
10년 전 조회 1,228
10년 전 조회 3,031
10년 전 조회 1,408
10년 전 조회 786
10년 전 조회 1,804
10년 전 조회 1,536
10년 전 조회 1,265
10년 전 조회 1,211
10년 전 조회 1,445
10년 전 조회 1,096
10년 전 조회 717
10년 전 조회 1,522
10년 전 조회 2,000
10년 전 조회 1,513
🐛 버그신고