E

사이트의 해상도를 알려주고 해상도가 맞지 않으면 경고창을 띄우는 스크립트

· 2006-05-11 (목) 10:44:01 · 2549
<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>
|
댓글을 작성하시려면 로그인이 필요합니다.

개발자팁

5,403건

개발과 관련된 유용한 정보를 공유하세요. 질문은 QA에서 해주시기 바랍니다.

+
분류 제목 글쓴이 날짜 조회
MySQL 06-05-14 조회 7,071
JavaScript 06-05-14 조회 7,654
Flash 06-05-13 조회 4,236
Flash 06-05-13 조회 4,095
Flash 06-05-13 조회 3,696
Flash 06-05-13 조회 3,530
기타 06-05-12 조회 6,980
MySQL 06-05-12 조회 4,222
JavaScript 06-05-11 조회 3,751
기타 06-05-11 조회 5,057
기타 06-05-11 조회 3,305
기타 06-05-11 조회 3,419
JavaScript 06-05-11 조회 5,542
기타 06-05-11 조회 3,962
JavaScript 06-05-11 조회 4,211
기타 06-05-11 조회 3,554
기타 06-05-11 조회 3,992
기타 06-05-11 조회 3,035
JavaScript 06-05-11 조회 3,001
JavaScript 06-05-11 조회 3,808
기타 06-05-11 조회 3,146
기타 06-05-11 조회 3,601
기타 06-05-11 조회 2,724
JavaScript 06-05-11 조회 2,810
기타 06-05-11 조회 2,753
기타 06-05-11 조회 2,550
JavaScript
[JavaScript]
06-05-10 조회 4,327
Flash 06-05-10 조회 3,965
기타 06-05-10 조회 3,926
JavaScript 06-05-09 조회 5,076