<script type="text/javascript" language="javascript">
        function ShowNo()                        //隐藏两个层
        {
            document.getElementById("doing").style.display="none";
            document.getElementById("divLogin").style.display="none";
        }
        function $(id)       
        {
            return (document.getElementById) ? document.getElementById(id) : document.all[id] ;
        }
        function showFloat()                    //根据屏幕的大小显示两个层
        {
            var range = getRange();
            $('doing').style.width = range.width + "px";
            $('doing').style.height = range.height + "px";
            $('doing').style.display = "block";
            document.getElementById("divLogin").style.display="";
        }
        function getRange()                      //得到屏幕的大小
        {
              var top    = document.body.scrollTop;
              var left    = document.body.scrollLeft;
              var height = document.body.clientHeight;
              var width  = document.body.clientWidth;

              if (top==0 && left==0 && height==0 && width==0)
              {
                top    = document.documentElement.scrollTop;
                left    = document.documentElement.scrollLeft;
                height = document.documentElement.clientHeight;
                width  = document.documentElement.clientWidth;
              }
              return {top:top ,left:left ,height:height ,width:width } ;
        }
    </script>
    <style type="text/css">
          body{margin:0px;}
    </style>

<form />
                </div>
            </div>
      </div>
    </form>

 

本文来自CSDN博客,转载请标明出处:http://blog.csdn.net/zzcbyl/archive/2009/02/25/3936496.aspx

 

相关文章:

  • 2022-12-23
  • 2021-12-15
  • 2021-10-13
  • 2022-12-23
  • 2022-12-23
  • 2021-12-11
  • 2022-12-23
  • 2022-01-12
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2021-12-10
  • 2021-11-30
  • 2021-11-17
相关资源
相似解决方案