# Changing a backround picture with the time

**URL:** <https://forum.kirupa.com/t/changing-a-backround-picture-with-the-time/218690>\
**Category:** flash\
**Created:** [March 9, 2007, 7:40pm UTC](https://forum.kirupa.com/t/changing-a-backround-picture-with-the-time/218690 "2007-03-09T19:40:34Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Linebacker334](https://avatars.discourse-cdn.com/v4/letter/l/7feea3/32.png) [@Linebacker334](https://forum.kirupa.com/u/Linebacker334)\
**Post date:** [March 9, 2007, 7:40pm UTC](https://forum.kirupa.com/t/changing-a-backround-picture-with-the-time/218690/1 "2007-03-09T19:40:34Z")

</div>

ok i need help writing a code that will change a picture base upon the time.

i want to have a picture of the sun rising between the time 6am to 11 am

then from 12pm - 5 pm a pic of the ocean showing

from 6 pm - 10 pm- a pic of the sun setting…

then from 11pm- 5am a picture of the northern lights…

help please…

ohh yeah i have the time being called in a # from 1-24, = var = hour

idk if u can write if statments with a range of numbers . ex. if (hour \> “range of time/#'s”) …

or have a shape in the backround and have it change as the time changes??/

any help would be greatly appreticated.!!

dave
