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,539
10년 전 조회 1,493
10년 전 조회 1,158
10년 전 조회 1,478
10년 전 조회 1,318
10년 전 조회 1,033
10년 전 조회 1,655
10년 전 조회 1,112
10년 전 조회 1,398
10년 전 조회 1,073
10년 전 조회 917
10년 전 조회 2,322
10년 전 조회 1,410
10년 전 조회 1,478
10년 전 조회 1,224
10년 전 조회 1,468
10년 전 조회 1,345
10년 전 조회 1,121
10년 전 조회 1,531
10년 전 조회 1,996
10년 전 조회 1,410
10년 전 조회 1,289
10년 전 조회 1,321
10년 전 조회 1,240
10년 전 조회 1,906
10년 전 조회 1,829
10년 전 조회 882
10년 전 조회 1,290
10년 전 조회 853
10년 전 조회 1,210
10년 전 조회 2,680
10년 전 조회 1,243
10년 전 조회 3,304
10년 전 조회 1,932
10년 전 조회 1,565
10년 전 조회 904
10년 전 조회 1,258
10년 전 조회 1,571
10년 전 조회 1,971
10년 전 조회 3,287
10년 전 조회 2,097
10년 전 조회 2,254
10년 전 조회 2,724
10년 전 조회 4,358
10년 전 조회 1,928
10년 전 조회 1,090
10년 전 조회 2,786
10년 전 조회 1,234
10년 전 조회 1,461
10년 전 조회 2,257
10년 전 조회 1,127
10년 전 조회 1,161
10년 전 조회 3,436
10년 전 조회 1,160
10년 전 조회 1,031
10년 전 조회 1,006
10년 전 조회 914
10년 전 조회 1,448
10년 전 조회 1,178
10년 전 조회 1,062
10년 전 조회 1,167
10년 전 조회 1,690
10년 전 조회 2,550
10년 전 조회 1,587
10년 전 조회 1,842
10년 전 조회 2,383
10년 전 조회 1,784
10년 전 조회 1,571
10년 전 조회 1,517
10년 전 조회 4,388
10년 전 조회 1,150
10년 전 조회 1,488
10년 전 조회 2,037
10년 전 조회 1,496
10년 전 조회 3,233
10년 전 조회 1,456
10년 전 조회 1,362
10년 전 조회 1,478
10년 전 조회 5,021
10년 전 조회 1,328
10년 전 조회 2,929
10년 전 조회 2,168
10년 전 조회 2,825
10년 전 조회 2,433
10년 전 조회 3,145
10년 전 조회 1,307
10년 전 조회 1,562
10년 전 조회 3,360
10년 전 조회 1,724
10년 전 조회 1,115
10년 전 조회 2,119
10년 전 조회 1,846
10년 전 조회 1,588
10년 전 조회 1,533
10년 전 조회 1,784
10년 전 조회 1,419
10년 전 조회 1,053
10년 전 조회 1,858
10년 전 조회 2,331
10년 전 조회 1,874