사이트의 해상도를 알려주고 해상도가 맞지 않으면 경고창을 띄우는 스크립트
<SCRIPT LANGUAGE="JavaScript">
<!-- Original: http://www.geocities.com/SiliconValley/6052 -->
<!-- Begin
function DetectBrowser (BestBrowser,BestVersion) {
var Browser = navigator.appName;
var Version = navigator.appVersion;
if (Browser == BestBrowser) {
if (Version == BestVersion) {
alert ("Congratulations, you've got just the right browser to be able to view this page properly.");
} else {
alert ("You've at least got the right browser, but the version is not the right one, so you might not be possible to view the page properly.");}
} else {
alert ("Sorry, you haven't got the right browser to view this page as it was meant to be viewed, so you'll probably not be able to view this page properly.");
}
}
// End -->
</SCRIPT>
</HEAD>
<BODY>
<center><FONT SIZE=-1>This page is best viewed with Netscape 3.01, Windows 95 and 640x480 resolution.</FONT>
<FORM><INPUT TYPE=BUTTON VALUE="Have the right browser?" onClick="DetectBrowser ('Netscape','3.01Gold (Win95; I)')"></FORM></center><div class='small'>[이 게시물은 관리자님에 의해 2011-10-31 17:16:08 PHP & HTML에서 이동 됨]</div>
<!-- Original: http://www.geocities.com/SiliconValley/6052 -->
<!-- Begin
function DetectBrowser (BestBrowser,BestVersion) {
var Browser = navigator.appName;
var Version = navigator.appVersion;
if (Browser == BestBrowser) {
if (Version == BestVersion) {
alert ("Congratulations, you've got just the right browser to be able to view this page properly.");
} else {
alert ("You've at least got the right browser, but the version is not the right one, so you might not be possible to view the page properly.");}
} else {
alert ("Sorry, you haven't got the right browser to view this page as it was meant to be viewed, so you'll probably not be able to view this page properly.");
}
}
// End -->
</SCRIPT>
</HEAD>
<BODY>
<center><FONT SIZE=-1>This page is best viewed with Netscape 3.01, Windows 95 and 640x480 resolution.</FONT>
<FORM><INPUT TYPE=BUTTON VALUE="Have the right browser?" onClick="DetectBrowser ('Netscape','3.01Gold (Win95; I)')"></FORM></center><div class='small'>[이 게시물은 관리자님에 의해 2011-10-31 17:16:08 PHP & HTML에서 이동 됨]</div>
게시판 목록
개발자팁
개발과 관련된 유용한 정보를 공유하세요.
질문은 QA에서 해주시기 바랍니다.
질문은 QA에서 해주시기 바랍니다.
| 번호 | 분류 | 제목 | 글쓴이 | 날짜 | 조회 |
|---|---|---|---|---|---|
| 416 | 기타 |
개발자관리자
|
19년 전 | 3894 | |
| 415 | 기타 |
개발자관리자
|
19년 전 | 4896 | |
| 414 | Flash |
|
19년 전 | 4430 | |
| 413 | Flash |
|
19년 전 | 3475 | |
| 412 | Flash |
|
19년 전 | 6632 | |
| 411 | Flash |
|
19년 전 | 4105 | |
| 410 | JavaScript | 19년 전 | 3871 | ||
| 409 | Flash |
|
19년 전 | 4658 | |
| 408 | Flash |
|
19년 전 | 3998 | |
| 407 | Flash |
|
19년 전 | 5323 | |
| 406 | Flash |
|
19년 전 | 3388 | |
| 405 | Flash |
|
19년 전 | 5556 | |
| 404 | Flash |
|
19년 전 | 5365 | |
| 403 | Flash |
|
19년 전 | 7361 | |
| 402 | Flash |
|
19년 전 | 5135 | |
| 401 | 기타 |
스마일미디어
|
19년 전 | 4417 | |
| 400 | JavaScript |
스마일미디어
|
19년 전 | 4283 | |
| 399 | JavaScript |
스마일미디어
|
19년 전 | 3513 | |
| 398 | 기타 |
스마일미디어
|
19년 전 | 3561 | |
| 397 | 기타 |
스마일미디어
|
19년 전 | 3992 | |
| 396 | MySQL | 19년 전 | 4739 | ||
| 395 | JavaScript |
|
19년 전 | 4049 | |
| 394 | Flash |
|
19년 전 | 4114 | |
| 393 | 정규표현식 |
sjsjin
|
19년 전 | 4176 | |
| 392 | JavaScript |
sjsjin
|
19년 전 | 5812 | |
| 391 | 기타 |
sjsjin
|
19년 전 | 3883 | |
| 390 | Flash | 19년 전 | 5351 | ||
| 389 | 기타 | 19년 전 | 5133 | ||
| 388 | JavaScript | 19년 전 | 5619 | ||
| 387 | 기타 | 19년 전 | 4451 |
댓글 작성
댓글을 작성하시려면 로그인이 필요합니다.
로그인하기