将此段放到<head></head>中
<script>
function window.onload()
{
var now = new Date();
if (now.getHours() > 10)
header.location="head1.htm";
else
header.location="head2.htm";
}
</script>
<script>
function window.onload()
{
var now = new Date();
if (now.getHours() > 10)
header.location="head1.htm";
else
header.location="head2.htm";
}
</script>
var now = new Date();
if (now.getHours() > 10)
header.location="head1.htm";
else
header.location="head2.htm";
</script>
也可以:
document.write("frame src=" + strUrl + ">")
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()>
document.all 是什么,我怎么找不到资料呀?