Here it is:
<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">body{background: white url(1st.jpg); color: black}</style>')
} else
if(x>=4 && x<12) {
document.write('<style type="text/css">body{background: white url(2nd.jpg); color: black}</style>')
} else
if(x>=12 && x<18) {
document.write('<style type="text/css">body{background: white url(3rd.jpg); color: black}</style>')
} else
if (x>=18 && x<24) {
document.write('<style type="text/css">body{background: white url(4th.jpg); color: black}</style>')
}
</script>
Problem is...well, it won't display the flash. I know that background won't work and I won't be using jpegs of course, but I want to be able to post this in an invisible table, which is in my body, that's where the headers will be placed. Is there even a way to put a flash movie in javascript such as this? Do I require any css to make this work?
If you think there's a better way to do this, with something other than this script, I definitely welcome it.
I thank you for your help.
-Armagnis

New Topic/Question
Reply



MultiQuote




|