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,175
10년 전 조회 1,087
10년 전 조회 791
10년 전 조회 1,110
10년 전 조회 900
10년 전 조회 662
10년 전 조회 1,257
10년 전 조회 734
10년 전 조회 1,016
10년 전 조회 687
10년 전 조회 537
10년 전 조회 1,930
10년 전 조회 1,015
10년 전 조회 1,033
10년 전 조회 816
10년 전 조회 1,104
10년 전 조회 966
10년 전 조회 707
10년 전 조회 1,175
10년 전 조회 1,611
10년 전 조회 1,010
10년 전 조회 901
10년 전 조회 924
10년 전 조회 843
10년 전 조회 1,543
10년 전 조회 1,439
10년 전 조회 493
10년 전 조회 885
10년 전 조회 467
10년 전 조회 826
10년 전 조회 2,309
10년 전 조회 843
10년 전 조회 2,880
10년 전 조회 1,545
10년 전 조회 1,151
10년 전 조회 494
10년 전 조회 854
10년 전 조회 1,142
10년 전 조회 1,567
10년 전 조회 2,925
10년 전 조회 1,704
10년 전 조회 1,871
10년 전 조회 2,340
10년 전 조회 3,922
10년 전 조회 1,540
10년 전 조회 693
10년 전 조회 2,387
10년 전 조회 823
10년 전 조회 1,046
10년 전 조회 1,812
10년 전 조회 720
10년 전 조회 732
10년 전 조회 3,040
10년 전 조회 734
10년 전 조회 616
10년 전 조회 589
10년 전 조회 501
10년 전 조회 1,041
10년 전 조회 768
10년 전 조회 646
10년 전 조회 747
10년 전 조회 1,254
10년 전 조회 2,092
10년 전 조회 1,160
10년 전 조회 1,427
10년 전 조회 1,923
10년 전 조회 1,337
10년 전 조회 1,141
10년 전 조회 1,061
10년 전 조회 3,941
10년 전 조회 721
10년 전 조회 1,040
10년 전 조회 1,647
10년 전 조회 1,084
10년 전 조회 2,801
10년 전 조회 1,030
10년 전 조회 956
10년 전 조회 1,037
10년 전 조회 4,608
10년 전 조회 913
10년 전 조회 2,431
10년 전 조회 1,742
10년 전 조회 2,391
10년 전 조회 1,955
10년 전 조회 2,700
10년 전 조회 860
10년 전 조회 1,118
10년 전 조회 2,931
10년 전 조회 1,297
10년 전 조회 674
10년 전 조회 1,693
10년 전 조회 1,424
10년 전 조회 1,167
10년 전 조회 1,108
10년 전 조회 1,338
10년 전 조회 972
10년 전 조회 607
10년 전 조회 1,415
10년 전 조회 1,888
10년 전 조회 1,400
🐛 버그신고