// Dynamic Background for HTML5 template based on time of day.
var d = new Date();
var h = d.getHours();
if ((h <= 5) && (h >=18))
document.getElementById("bgText").innerHTML="The BG Should be Day Time";
document.getElementById("bgText").innerHTML="The BG Should be Night Time";
window.onload = dynamicBG();
The second output for the innerHTML is just to validate what is posted back to the page on load, but nothing happens.
Blank screen and just a heading.
Anyone shed any light on it?!