// 8点到早上19点关
var curr = new Date();
var time = curr.getHours();
if ( time >=0 && time <24 ){
document.write("<frameset cols="100%">");
document.write(" <frame src="http://www.test.com/index.html" />");
document.write("</frameset>");
document.title="";
}else{
}