Images depending on time

what i want to do is create a site that knows what the time is in your area via your pc clock hopefully and depending on the time puts a different background image up e.g. night time = night picture daytime = sunny daytime pic

any ideas

-Tom:toad: :bounce:

http://www.macromedia.com/support/flash/action_scripts/actionscript_dictionary/actionscript_dictionary153.html

cheers doesnt really show me how to pull up the different images for the time but ill have a fiddle about. probably figure it out sooner or later

-Tom
cheers

I didn’t tell you the exact code because I think you should try to find it by yourself :slight_smile:

cheers is the code actually in the actionscript dictionary u should give me a clue where to find it im not good at working stuff out

-Tom lol :slight_smile:

The code is not in the ActionScript dictionary I think. There are some examples there of the usage of the Date object though, and explanation on every method the Date object has available. Those should get you on the right track.

cool cool yeh i kinda got it now mind u ill have to wait till 2nite lol or change my clock but i dontlike to mess

cheeras
-Tom :):wink:

Haha, yeah :stuck_out_tongue:

I think it would be easier to change your clock, don’t you think ? :wink:

you don’t have to depend on the clock to test,
just hardcode the variables value to 10AM, test,
then change to 5PM / midnite, whatever, test,
if everything is ok, go back to the actual code…