大页面里的js:

<script>
function jmp(){
var w = document.body.clientWidth;
if( w > window.screen.width){
w = window.screen.width;
};
if( w < 1003){
window.location.href="2.html"
};
}
window.onresize = jmp;
jmp();
</script>

小页面里的js:

<script>
function jmp(){
var w = document.body.clientWidth;
if( w > window.screen.width){
w = window.screen.width;
};
if( w > 1003){
window.location.href="1.html"
};
}
window.onresize = jmp;
jmp();
</script>

最新文章

  1. saltstsck执行sls配置
  2. 38、重新复习javascript之三
  3. 问题解决The connection to adb is down, and a severe error has occured.
  4. Redis操作的封装类
  5. 转 DevExpress-ASPxPageControl 动态添加 TabPage 内容
  6. C#中Predicate&lt;T&gt;与Func&lt;T, bool&gt;泛型委托的用法实例
  7. [译]JavaScript insertAdjacentHTML
  8. vxworks
  9. OD: Windows Kernel Debug
  10. CENTOS 挂载硬盘
  11. javascript 基本特性
  12. JavaScript进阶(九)JS实现本地文件上传至阿里云服务器
  13. View的相关原理(读书笔记)
  14. 详解Django中六个常用的自定义装饰器
  15. Chrome多线程下载
  16. 【硅谷问道】Chris Lattner 访谈录(下)
  17. eclipse缓慢了么?
  18. mysql中使用正则表达式查询
  19. 移动开发iOS&amp;Android对比学习--异步处理
  20. Installing python-ldap in Ubuntu

热门文章

  1. signal()函数
  2. 链表回文串判断&amp;&amp;链式A+B
  3. 【boost】使用lambda表达式和generate_n生成顺序序列
  4. 挖坟之Spring.NET IOC容器初始化
  5. openstack neutron
  6. LINQ标准查询操作符(一)——select、SelectMany、Where、OrderBy、OrderByDescending、ThenBy、ThenByDescending和Reverse
  7. ESB后台error日志
  8. 将服务器返回的URL或者网址截取出来特定的字符,然后将字符返回,一般根据返回的字符判断用户是否登录等即时状态
  9. poj 1273 Drainage Ditches(最大流)
  10. js 控制 table style css