網頁設計技巧:偵測解析度進入不同網頁
自動辨識瀏覽者解析度而進入不同的網頁
放於<head>與</head>之間:
<script type="text/javascript"> <!-- var swidth=1024; var sheight=768; if (screen.width<swidth||screen.height<sheight) { location.replace("800.htm"); } else { location.replace("1024.htm"); } //--> </script>
0 留言:
發佈留言