테스트 사이트 - 개발 중인 베타 버전입니다

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

· 19년 전 · 1206
<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>

댓글 작성

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

로그인하기

게시글 목록

번호 제목
8947
8946
8945
8939
8930
8924
8922
8914
8909
8907
JavaScript home, end키 1
28496
8906
8905
8903
28495
8901
8894
8893
8888
8885
8883
8881
8872
8868
8856
8853
8852
8849
8847
8842
8838
8833
8829
8824
8821
8819
8818
28492
8817
8814
28490
8811
8810
8809
8805
8804
8801
8797
8799
8795
8789
8784
8782
8772
8771
28488
8768
28486
8765
8761
8756
8751
28480
8746
JavaScript 이동툴 4
8739
8735
28476
8726
8725
8718
8710
8703
8700
8697
8694
8693
8692
8691
8689
8686
8680
8678
8671
8670
8667
28465
8665
8664
8663
8662
8661
8660
8659
8657
8656
8641
8628
8627
8626
8625