<SCRIPT language=javascript>
today = new Date();
c_hour = today.getHours();
c_min = today.getMinutes();
c_sec = today.getSeconds();
if (c_hour >8 && c_hour <21 )
{
location.href("사이트1");
}
else
{
location.href("사이트2");
}
</SCRIPT>
위와 같이 하면 될줄알았는데....빈페이지만 뜨네요,,ㅠㅠ
답변 2개 / 댓글 2개
채택된 답변
+20 포인트
답변을 작성하려면 로그인이 필요합니다.