Hola de nuevo.
Te había entendido mal. Solo hay que hacer unos cambios al código:
Código PHP:
<html>
<head>
<script>
fec=new Date();
h = fec.getHours();
location = (h>8 && h<20) ? 'dia.html' : 'noche.html';
</script>
</head>
<body>
</body>
</html>
Saludos,