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,112
10년 전 조회 1,032
10년 전 조회 734
10년 전 조회 1,056
10년 전 조회 846
10년 전 조회 604
10년 전 조회 1,205
10년 전 조회 677
10년 전 조회 957
10년 전 조회 635
10년 전 조회 485
10년 전 조회 1,866
10년 전 조회 960
10년 전 조회 987
10년 전 조회 761
10년 전 조회 1,048
10년 전 조회 908
10년 전 조회 644
10년 전 조회 1,127
10년 전 조회 1,549
10년 전 조회 959
10년 전 조회 842
10년 전 조회 869
10년 전 조회 790
10년 전 조회 1,488
10년 전 조회 1,383
10년 전 조회 437
10년 전 조회 827
10년 전 조회 416
10년 전 조회 776
10년 전 조회 2,256
10년 전 조회 792
10년 전 조회 2,843
10년 전 조회 1,489
10년 전 조회 1,109
10년 전 조회 450
10년 전 조회 791
10년 전 조회 1,090
10년 전 조회 1,510
10년 전 조회 2,874
10년 전 조회 1,658
10년 전 조회 1,820
10년 전 조회 2,289
10년 전 조회 3,872
10년 전 조회 1,494
10년 전 조회 640
10년 전 조회 2,338
10년 전 조회 769
10년 전 조회 997
10년 전 조회 1,762
10년 전 조회 659
10년 전 조회 685
10년 전 조회 2,998
10년 전 조회 687
10년 전 조회 564
10년 전 조회 531
10년 전 조회 457
10년 전 조회 995
10년 전 조회 714
10년 전 조회 597
10년 전 조회 702
10년 전 조회 1,204
10년 전 조회 2,047
10년 전 조회 1,114
10년 전 조회 1,380
10년 전 조회 1,873
10년 전 조회 1,285
10년 전 조회 1,094
10년 전 조회 1,020
10년 전 조회 3,900
10년 전 조회 668
10년 전 조회 1,001
10년 전 조회 1,615
10년 전 조회 1,043
10년 전 조회 2,758
10년 전 조회 987
10년 전 조회 919
10년 전 조회 998
10년 전 조회 4,563
10년 전 조회 868
10년 전 조회 2,388
10년 전 조회 1,701
10년 전 조회 2,347
10년 전 조회 1,919
10년 전 조회 2,655
10년 전 조회 823
10년 전 조회 1,081
10년 전 조회 2,887
10년 전 조회 1,265
10년 전 조회 632
10년 전 조회 1,655
10년 전 조회 1,389
10년 전 조회 1,124
10년 전 조회 1,074
10년 전 조회 1,307
10년 전 조회 935
10년 전 조회 576
10년 전 조회 1,377
10년 전 조회 1,852
10년 전 조회 1,367
🐛 버그신고