s

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

<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-04-05 조회 4,389
13-04-05 조회 3,951
13-04-02 조회 3,378
13-04-02 조회 4,228
13-04-02 조회 4,601
13-04-02 조회 1,825
13-03-31 조회 2,968
13-03-31 조회 2,952
13-03-31 조회 1,472
13-03-28 조회 1,507
13-03-28 조회 8,689
13-03-28 조회 1,752
13-03-28 조회 3,975
13-03-28 조회 6,553
13-03-28 조회 1,764
13-03-25 조회 1,379
13-03-24 조회 1,526
13-03-24 조회 3,529
13-03-24 조회 1,285
13-03-23 조회 2,037
13-03-23 조회 1,475
13-03-23 조회 1,131
13-03-23 조회 1,646
13-03-22 조회 2,310
13-03-21 조회 1,617