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개

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

팁게시판

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

+
제목 글쓴이 날짜 조회
12년 전 조회 2,596
12년 전 조회 3,471
12년 전 조회 808
12년 전 조회 5,529
12년 전 조회 1,172
12년 전 조회 1,352
12년 전 조회 1,272
12년 전 조회 1,321
12년 전 조회 3,241
12년 전 조회 2,006
12년 전 조회 3,661
12년 전 조회 8,488
12년 전 조회 4,128
12년 전 조회 3,711
12년 전 조회 3,114
12년 전 조회 3,956
12년 전 조회 4,341
12년 전 조회 1,573
12년 전 조회 2,695
12년 전 조회 2,690
12년 전 조회 1,228
12년 전 조회 1,255
12년 전 조회 8,381
12년 전 조회 1,489
12년 전 조회 3,734
🐛 버그신고