# How to load swf depending of the hours of the day?

**URL:** <https://forum.kirupa.com/t/how-to-load-swf-depending-of-the-hours-of-the-day/166285>\
**Category:** Uncategorized\
**Created:** [October 18, 2005, 4:57pm UTC](https://forum.kirupa.com/t/how-to-load-swf-depending-of-the-hours-of-the-day/166285 "2005-10-18T16:57:47Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![alapimba](https://avatars.discourse-cdn.com/v4/letter/a/ea666f/32.png) [@alapimba](https://forum.kirupa.com/u/alapimba)\
**Post date:** [October 18, 2005, 4:57pm UTC](https://forum.kirupa.com/t/how-to-load-swf-depending-of-the-hours-of-the-day/166285/1 "2005-10-18T16:57:47Z")

</div>

Hello  
i want to have an swf loaded between 8am and 6pm and another one between 6pm and 8am.

How can i do that?  
i guess it’s not very hard but i don’t get it.

i suppose i need a variable with the hours. then do a if statment that check if the current hours is between 8am and 6pm.

then if it’s between this time do this if not do that…

No i just don’t know how to write the code for this :sigh:

Anyone want to help?  
Thanks 🙂
