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,152
10년 전 조회 1,073
10년 전 조회 770
10년 전 조회 1,092
10년 전 조회 883
10년 전 조회 644
10년 전 조회 1,245
10년 전 조회 715
10년 전 조회 997
10년 전 조회 671
10년 전 조회 521
10년 전 조회 1,907
10년 전 조회 996
10년 전 조회 1,016
10년 전 조회 796
10년 전 조회 1,084
10년 전 조회 942
10년 전 조회 679
10년 전 조회 1,156
10년 전 조회 1,585
10년 전 조회 994
10년 전 조회 879
10년 전 조회 907
10년 전 조회 819
10년 전 조회 1,514
10년 전 조회 1,414
10년 전 조회 468
10년 전 조회 859
10년 전 조회 442
10년 전 조회 804
10년 전 조회 2,284
10년 전 조회 817
10년 전 조회 2,864
10년 전 조회 1,516
10년 전 조회 1,132
10년 전 조회 475
10년 전 조회 829
10년 전 조회 1,118
10년 전 조회 1,541
10년 전 조회 2,900
10년 전 조회 1,680
10년 전 조회 1,846
10년 전 조회 2,321
10년 전 조회 3,901
10년 전 조회 1,518
10년 전 조회 672
10년 전 조회 2,363
10년 전 조회 804
10년 전 조회 1,026
10년 전 조회 1,792
10년 전 조회 692
10년 전 조회 713
10년 전 조회 3,020
10년 전 조회 711
10년 전 조회 591
10년 전 조회 558
10년 전 조회 482
10년 전 조회 1,023
10년 전 조회 740
10년 전 조회 624
10년 전 조회 725
10년 전 조회 1,234
10년 전 조회 2,074
10년 전 조회 1,140
10년 전 조회 1,408
10년 전 조회 1,902
10년 전 조회 1,314
10년 전 조회 1,117
10년 전 조회 1,044
10년 전 조회 3,923
10년 전 조회 700
10년 전 조회 1,025
10년 전 조회 1,630
10년 전 조회 1,069
10년 전 조회 2,783
10년 전 조회 1,008
10년 전 조회 938
10년 전 조회 1,022
10년 전 조회 4,593
10년 전 조회 892
10년 전 조회 2,411
10년 전 조회 1,729
10년 전 조회 2,368
10년 전 조회 1,942
10년 전 조회 2,682
10년 전 조회 843
10년 전 조회 1,102
10년 전 조회 2,914
10년 전 조회 1,281
10년 전 조회 653
10년 전 조회 1,675
10년 전 조회 1,407
10년 전 조회 1,148
10년 전 조회 1,091
10년 전 조회 1,322
10년 전 조회 953
10년 전 조회 595
10년 전 조회 1,397
10년 전 조회 1,866
10년 전 조회 1,384
🐛 버그신고