<script language="JavaScript">
<!-- Begin
function redirectPage() {
if ((screen.width == 640) && (screen.height == 480))
size = "640 x 480";
else if ((screen.width == 800) && (screen.height == 600))
size = "800 x 600";
else if ((screen.width == 1024) && (screen.height == 768))
size = "1024 x 768";
else size = "the default 640 x 480";
alert("經(jīng)系統(tǒng)檢測(cè),你的屏幕分辨率為 " + size + ",你的顯示器適于....");
}
// End -->
</script>
<form>
<input type=button value="檢測(cè)屏幕分辨率!" onClick="redirectPage()" name="button">
</form>
更多信息請(qǐng)查看IT技術(shù)專(zhuān)欄