사이트의 해상도를 알려주고 해상도가 맞지 않으면 경고창을 띄우는 스크립트
<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에서 해주시기 바랍니다.
| 번호 | 분류 | 제목 | 글쓴이 | 날짜 | 조회 |
|---|---|---|---|---|---|
| 566 | Flash | 19년 전 | 5435 | ||
| 565 | JavaScript | 19년 전 | 5419 | ||
| 564 | 기타 | 19년 전 | 4424 | ||
| 563 | JavaScript |
|
19년 전 | 2664 | |
| 562 | JavaScript |
|
19년 전 | 3158 | |
| 561 | 기타 |
|
19년 전 | 3304 | |
| 560 | MySQL | 19년 전 | 6722 | ||
| 559 | 기타 |
|
19년 전 | 2953 | |
| 558 | Flash |
|
19년 전 | 4074 | |
| 557 | Flash |
|
19년 전 | 11196 | |
| 556 | 기타 |
|
19년 전 | 3627 | |
| 555 | 기타 |
|
19년 전 | 3737 | |
| 554 | Flash |
|
19년 전 | 4296 | |
| 553 | Flash |
|
19년 전 | 3289 | |
| 552 | Flash |
|
19년 전 | 3719 | |
| 551 | Flash |
|
19년 전 | 3709 | |
| 550 | Flash |
|
19년 전 | 2971 | |
| 549 | 기타 |
|
19년 전 | 3667 | |
| 548 | Flash |
|
19년 전 | 4711 | |
| 547 | 기타 | 19년 전 | 3628 | ||
| 546 | 기타 | 19년 전 | 3200 | ||
| 545 | 기타 |
|
19년 전 | 4557 | |
| 544 | PHP | 19년 전 | 6280 | ||
| 543 | Flash | 19년 전 | 5556 | ||
| 542 | JavaScript | 19년 전 | 4990 | ||
| 541 | JavaScript | 19년 전 | 3642 | ||
| 540 | PHP |
|
19년 전 | 8533 | |
| 539 | 기타 | 19년 전 | 3225 | ||
| 538 | Flash | 19년 전 | 4990 | ||
| 537 | 기타 | 19년 전 | 2853 |
댓글 작성
댓글을 작성하시려면 로그인이 필요합니다.
로그인하기