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,206
10년 전 조회 1,112
10년 전 조회 822
10년 전 조회 1,141
10년 전 조회 929
10년 전 조회 694
10년 전 조회 1,297
10년 전 조회 768
10년 전 조회 1,050
10년 전 조회 717
10년 전 조회 567
10년 전 조회 1,966
10년 전 조회 1,052
10년 전 조회 1,070
10년 전 조회 850
10년 전 조회 1,136
10년 전 조회 995
10년 전 조회 740
10년 전 조회 1,212
10년 전 조회 1,637
10년 전 조회 1,044
10년 전 조회 931
10년 전 조회 959
10년 전 조회 881
10년 전 조회 1,572
10년 전 조회 1,476
10년 전 조회 531
10년 전 조회 925
10년 전 조회 499
10년 전 조회 860
10년 전 조회 2,345
10년 전 조회 876
10년 전 조회 2,918
10년 전 조회 1,574
10년 전 조회 1,183
10년 전 조회 537
10년 전 조회 892
10년 전 조회 1,184
10년 전 조회 1,600
10년 전 조회 2,948
10년 전 조회 1,742
10년 전 조회 1,898
10년 전 조회 2,371
10년 전 조회 3,960
10년 전 조회 1,578
10년 전 조회 718
10년 전 조회 2,424
10년 전 조회 860
10년 전 조회 1,082
10년 전 조회 1,848
10년 전 조회 756
10년 전 조회 764
10년 전 조회 3,077
10년 전 조회 771
10년 전 조회 652
10년 전 조회 624
10년 전 조회 539
10년 전 조회 1,075
10년 전 조회 806
10년 전 조회 682
10년 전 조회 790
10년 전 조회 1,286
10년 전 조회 2,129
10년 전 조회 1,200
10년 전 조회 1,461
10년 전 조회 1,960
10년 전 조회 1,375
10년 전 조회 1,182
10년 전 조회 1,095
10년 전 조회 3,976
10년 전 조회 759
10년 전 조회 1,074
10년 전 조회 1,688
10년 전 조회 1,123
10년 전 조회 2,839
10년 전 조회 1,062
10년 전 조회 996
10년 전 조회 1,073
10년 전 조회 4,642
10년 전 조회 943
10년 전 조회 2,467
10년 전 조회 1,771
10년 전 조회 2,428
10년 전 조회 1,991
10년 전 조회 2,735
10년 전 조회 900
10년 전 조회 1,154
10년 전 조회 2,966
10년 전 조회 1,333
10년 전 조회 705
10년 전 조회 1,727
10년 전 조회 1,463
10년 전 조회 1,197
10년 전 조회 1,150
10년 전 조회 1,379
10년 전 조회 1,013
10년 전 조회 649
10년 전 조회 1,457
10년 전 조회 1,926
10년 전 조회 1,439
🐛 버그신고