자바스크립트를 이용해 모니터 해상도 구하기
<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>
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개
쉽다zzz
12년 전
감사요~
takumi22
12년 전
감사합니다.
게시판 목록
팁게시판
디자인과 관련된 유용한 정보를 공유하세요.
질문은 상단의 QA에서 해주시기 바랍니다.
질문은 상단의 QA에서 해주시기 바랍니다.
| 번호 | 제목 | 글쓴이 | 날짜 | 조회 |
|---|---|---|---|---|
| 4802 | 13년 전 | 6605 | ||
| 4801 | 13년 전 | 814 | ||
| 4800 | 13년 전 | 1137 | ||
| 4799 | 13년 전 | 1101 | ||
| 4798 | 13년 전 | 2804 | ||
| 4797 | 13년 전 | 791 | ||
| 4796 |
|
13년 전 | 1168 | |
| 4795 | 13년 전 | 1743 | ||
| 4794 |
꿈꾸는인생
|
13년 전 | 1301 | |
| 4793 | 13년 전 | 1492 | ||
| 4792 | 13년 전 | 1684 | ||
| 4791 | 13년 전 | 726 | ||
| 4790 | 13년 전 | 709 | ||
| 4789 | 13년 전 | 1011 | ||
| 4788 | 13년 전 | 1051 | ||
| 4787 | 13년 전 | 1817 | ||
| 4786 | 13년 전 | 699 | ||
| 4785 |
high8sky
|
13년 전 | 739 | |
| 4784 | 13년 전 | 3124 | ||
| 4783 | 13년 전 | 874 | ||
| 4782 |
즐거운상상을
|
13년 전 | 1139 | |
| 4781 | 13년 전 | 963 | ||
| 4780 | 13년 전 | 1944 | ||
| 4779 | 13년 전 | 660 | ||
| 4778 |
순천홈페이지
|
13년 전 | 2813 |
댓글 작성
댓글을 작성하시려면 로그인이 필요합니다.
로그인하기