解决ie6 多次onresize() 调用问题

  1.  <script type="text/javascript">  
     var  resizeTimer = null;  
       
     function doResize(){  
       alert("width="+(document.documentElement||document.body).clientWidth +   
            "   Height="+(document.documentElement||document.body).clientHeight);  
     }  
       
     window.onresize = function(){  
      if(resizeTimer) clearTimeout(resizeTimer);  
       resizeTimer = setTimeout("doResize()",300);  
     }  
     </script>  
    

原文地址:https://www.cnblogs.com/wblade/p/1669158.html