Помогите реализовать чтобы менялся от времени суток.
У меня есть скрипт который меняет css, сделать так чтобы он работал с ctx.fillStyle у меня не получилось.
 
 
Сам скрипт 
<script language="JavaScript"> 
function getCSS()
{
datetoday = new Date();
timenow=datetoday.getTime();
datetoday.setTime(timenow);thehour = datetoday.getHours();
 if (thehour > 7 & thehour < 20) display = " style_day.css ";
 else display = "css/style_moon.css";
 var css = '<'; css+='link rel="stylesheet" href=' + display + ' /'; css+='>';document.write(css);
 }
</script>