s

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

· 2013-04-05 (금) 01:31:50 · 4377 · 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에서 해주시기 바랍니다.

+
제목 글쓴이 날짜 조회
12-09-05 조회 4,951
12-08-31 조회 3,409
12-08-30 조회 4,255
12-08-22 조회 9,377
12-08-09 조회 3,086
12-08-02 조회 1,281
12-07-30 조회 1,701
12-07-15 조회 1,139
12-07-10 조회 1,140
12-07-06 조회 1,104
12-07-06 조회 977
12-07-03 조회 1,757
12-07-03 조회 1,198
12-07-02 조회 1,037
12-06-25 조회 1,684
12-06-20 조회 1,090
12-06-15 조회 1,464
12-06-14 조회 1,003
12-06-08 조회 1,724
12-06-07 조회 1,402
12-06-05 조회 3,329
12-06-05 조회 1,017
12-06-04 조회 1,519
12-06-01 조회 1,739
12-06-01 조회 2,404