keii_san
10-23-2004, 07:37 PM
Hi,
I'm new to javascript, and for my homework for my CS class, I need to write a JS code that'lll display a different image depending on the hour of the day. For instance, from 9am to 5pm, it's image A, but from 5pm to 9am, it must be a different image.
This assignment requires that I use a conditional, if, and else statments, but I'm confused. I'd appreciate any help.
Thanks.
Please help. I'm dying.
I'm new to javascript, and for my homework for my CS class, I need to write a JS code that'lll display a different image depending on the hour of the day. For instance, from 9am to 5pm, it's image A, but from 5pm to 9am, it must be a different image.
This assignment requires that I use a conditional, if, and else statments, but I'm confused. I'd appreciate any help.
Thanks.
Please help. I'm dying.