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

 

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

 

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

프로그램

태그 필터 (최대 3개) 전체 개발자 소스 기타 mysql 팁자료실 javascript php linux flash 정규표현식 jquery node.js mobile 웹서버 os 프로그램 강좌 썸네일 이미지관련 도로명주소 그누보드5 기획자 견적서 계약서 기획서 마케팅 제안서 seo 통계 서식 통계자료 퍼블리셔 html css 반응형 웹접근성 퍼블리싱 표준화 반응형웹 홈페이지기초 부트스트랩 angularjs 포럼 스크린리더 센스리더 개발자톡 개발자팁 퍼블리셔톡 퍼블리셔팁 기획자톡 기획자팁 프로그램강좌 퍼블리싱강좌
+
제목 글쓴이 날짜 조회
10년 전 조회 1,144
10년 전 조회 1,064
10년 전 조회 759
10년 전 조회 1,080
10년 전 조회 875
10년 전 조회 633
10년 전 조회 1,235
10년 전 조회 706
10년 전 조회 992
10년 전 조회 663
10년 전 조회 512
10년 전 조회 1,901
10년 전 조회 991
10년 전 조회 1,009
10년 전 조회 789
10년 전 조회 1,074
10년 전 조회 933
10년 전 조회 668
10년 전 조회 1,150
10년 전 조회 1,579
10년 전 조회 982
10년 전 조회 869
10년 전 조회 897
10년 전 조회 812
10년 전 조회 1,506
10년 전 조회 1,409
10년 전 조회 462
10년 전 조회 847
10년 전 조회 435
10년 전 조회 799
10년 전 조회 2,273
10년 전 조회 809
10년 전 조회 2,858
10년 전 조회 1,506
10년 전 조회 1,127
10년 전 조회 470
10년 전 조회 823
10년 전 조회 1,112
10년 전 조회 1,533
10년 전 조회 2,892
10년 전 조회 1,674
10년 전 조회 1,837
10년 전 조회 2,310
10년 전 조회 3,896
10년 전 조회 1,512
10년 전 조회 660
10년 전 조회 2,355
10년 전 조회 794
10년 전 조회 1,022
10년 전 조회 1,787
10년 전 조회 685
10년 전 조회 706
10년 전 조회 3,015
10년 전 조회 707
10년 전 조회 583
10년 전 조회 548
10년 전 조회 477
10년 전 조회 1,015
10년 전 조회 732
10년 전 조회 618
10년 전 조회 719
10년 전 조회 1,225
10년 전 조회 2,065
10년 전 조회 1,132
10년 전 조회 1,399
10년 전 조회 1,895
10년 전 조회 1,308
10년 전 조회 1,112
10년 전 조회 1,040
10년 전 조회 3,917
10년 전 조회 696
10년 전 조회 1,021
10년 전 조회 1,626
10년 전 조회 1,065
10년 전 조회 2,777
10년 전 조회 1,004
10년 전 조회 932
10년 전 조회 1,016
10년 전 조회 4,588
10년 전 조회 888
10년 전 조회 2,403
10년 전 조회 1,720
10년 전 조회 2,362
10년 전 조회 1,937
10년 전 조회 2,673
10년 전 조회 837
10년 전 조회 1,096
10년 전 조회 2,906
10년 전 조회 1,276
10년 전 조회 644
10년 전 조회 1,670
10년 전 조회 1,399
10년 전 조회 1,138
10년 전 조회 1,086
10년 전 조회 1,316
10년 전 조회 947
10년 전 조회 590
10년 전 조회 1,392
10년 전 조회 1,863
10년 전 조회 1,378
🐛 버그신고