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,104
10년 전 조회 1,021
10년 전 조회 726
10년 전 조회 1,047
10년 전 조회 838
10년 전 조회 594
10년 전 조회 1,196
10년 전 조회 670
10년 전 조회 951
10년 전 조회 624
10년 전 조회 475
10년 전 조회 1,860
10년 전 조회 951
10년 전 조회 977
10년 전 조회 752
10년 전 조회 1,039
10년 전 조회 898
10년 전 조회 634
10년 전 조회 1,118
10년 전 조회 1,542
10년 전 조회 949
10년 전 조회 833
10년 전 조회 856
10년 전 조회 778
10년 전 조회 1,476
10년 전 조회 1,374
10년 전 조회 427
10년 전 조회 815
10년 전 조회 404
10년 전 조회 766
10년 전 조회 2,244
10년 전 조회 785
10년 전 조회 2,834
10년 전 조회 1,477
10년 전 조회 1,100
10년 전 조회 441
10년 전 조회 781
10년 전 조회 1,082
10년 전 조회 1,503
10년 전 조회 2,865
10년 전 조회 1,650
10년 전 조회 1,811
10년 전 조회 2,282
10년 전 조회 3,867
10년 전 조회 1,487
10년 전 조회 630
10년 전 조회 2,328
10년 전 조회 760
10년 전 조회 988
10년 전 조회 1,752
10년 전 조회 653
10년 전 조회 676
10년 전 조회 2,991
10년 전 조회 683
10년 전 조회 557
10년 전 조회 524
10년 전 조회 448
10년 전 조회 988
10년 전 조회 705
10년 전 조회 594
10년 전 조회 694
10년 전 조회 1,197
10년 전 조회 2,039
10년 전 조회 1,108
10년 전 조회 1,374
10년 전 조회 1,863
10년 전 조회 1,281
10년 전 조회 1,086
10년 전 조회 1,013
10년 전 조회 3,889
10년 전 조회 664
10년 전 조회 994
10년 전 조회 1,610
10년 전 조회 1,032
10년 전 조회 2,746
10년 전 조회 979
10년 전 조회 911
10년 전 조회 990
10년 전 조회 4,553
10년 전 조회 859
10년 전 조회 2,380
10년 전 조회 1,695
10년 전 조회 2,339
10년 전 조회 1,912
10년 전 조회 2,650
10년 전 조회 816
10년 전 조회 1,072
10년 전 조회 2,880
10년 전 조회 1,254
10년 전 조회 625
10년 전 조회 1,648
10년 전 조회 1,383
10년 전 조회 1,116
10년 전 조회 1,066
10년 전 조회 1,297
10년 전 조회 929
10년 전 조회 571
10년 전 조회 1,369
10년 전 조회 1,843
10년 전 조회 1,358
🐛 버그신고