s

자바스크립트를 이용해 모니터 해상도 구하기

· 2013-04-05 (금) 01:31:50 · 4368 · 2
<script type="text/javascript">

document.write('가로: ', screen.width, '<br />', '세로: ', screen.height, '<br />');



document.write('<br /><br />'); // 줄바꿈



if ( (screen.width == 1024) && (screen.height == 768) ) {
document.write('평균적인 해상도이군요<br />');
}
else if ( (screen.width < 1024) && (screen.height < 768) ) {
document.write('저해상도이군요.<br />');
}
else if ( (screen.width > 1024) && (screen.height > 768) ) {
document.write('고해상도이군요.<br />');
}
else
document.write('비표준 해상도군요.<br />');

< /script>
|

댓글 2개

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

팁게시판

6,077건

디자인과 관련된 유용한 정보를 공유하세요. 질문은 상단의 QA에서 해주시기 바랍니다.

+
제목 글쓴이 날짜 조회
13-05-08 조회 2,691
13-04-05 조회 3,492
13-03-31 조회 2,950
13-03-24 조회 1,508
13-03-24 조회 3,512
13-03-23 조회 1,114
13-03-21 조회 1,289
13-03-20 조회 1,377
13-03-20 조회 1,845
13-03-20 조회 1,354
13-03-20 조회 1,467
13-03-20 조회 3,742
13-03-20 조회 1,677
13-03-20 조회 2,345
13-03-19 조회 3,233
13-03-14 조회 1,276
13-03-14 조회 1,700
13-03-14 조회 1,863
13-03-08 조회 1,561
13-03-03 조회 1,955
13-02-24 조회 2,387
13-02-21 조회 2,116
13-02-19 조회 2,050
13-02-18 조회 1,501
13-02-15 조회 1,369