将此段放到<head></head>中
<script>
function window.onload()
{
var now = new Date();
if (now.getHours() > 10)
  header.location="head1.htm";
else
  header.location="head2.htm";
}
  </script>

解决方案 »

  1.   

    <script>
    var now = new Date();
    if (now.getHours() > 10)
      header.location="head1.htm";
    else
      header.location="head2.htm";
      </script>
      也可以:
      document.write("frame src=" + strUrl + ">")
      

  2.   

    <script>
    function init(){
    var now = new Date();
    if (now.getHours() > 10)
      document.all.header.src="head1.htm";
    else
      document.all.header.src="head2.htm";
    }
      </script><frameset rows="65,*" onload=init()>
      

  3.   

    qiushuiwuhen(秋水无恨) 行了,谢谢!再问一句:
     document.all 是什么,我怎么找不到资料呀?