<script>
if(screen.width==800)
  location="800.htm"
if(screen.width==1024)
  location="1024.htm"
</script>

解决方案 »

  1.   

    <script language="javascript">
    if (window.screen){
      var widths = screen.width;
      url_800 = "default800.htm";
      url_1024 = "default1024.htm";
      if(widths>=740 & w<835){
        self.location.replace(url_800);
      }
      if(widths>=835){
        self.location.replace(url_1024);
      }
    }
    </script>
      

  2.   

    <script>
    if ((screen.width==800)&&(screen.height==600))
      window.location="1.htm"
    else
      window.location="2.htm"
    </script>