检查浏览器的分辨率

<script language="JavaScript">
window.moveTo(0,0);
window.resizeTo(screen.availWidth,screen.availHeight);
if(screen.width!=1024 && screen.height!=768)
alert("您浏览器的分辨率为:"+screen.width+"*"+screen.height+" 本站最佳浏览分辨率为:1024*768 ");
</script>
posted @ 2005-11-17 11:21  MyFavorite  阅读(675)  评论(0编辑  收藏  举报