Managed to sort it :) For reference if anyone else wants such functionality: http://stackoverflow.com/questions/6...ending-on-time
Thanks for the help though Rabbit
User Profile
Collapse
-
Thanks for the simplification.
Yeah I think I'd go for with hard coding it into the JS as it'd be easier.Leave a comment:
-
Javascript to change image depending on time..
Hi there,
Basically, I've got a script which changes the page background depending on the time.
...Code:<script language="JavaScript"> day=new Date() //..get the date x=day.getHours() //..get the hour if(x>=0 && x<4) { document.write('<style type="text/css">#header{background: white url(images/assets/1st.jpg); color: black}"></style>')Last edited by Niheel; Jul 6 '11, 09:07 PM.
No activity results to display
Show More
Leave a comment: