PDA

View Full Version : images depending on time



novatake
February 7th, 2004, 08:59 AM
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:

Voetsjoeba
February 7th, 2004, 09:05 AM
http://www.macromedia.com/support/flash/action_scripts/actionscript_dictionary/actionscript_dictionary153.html

novatake
February 7th, 2004, 09:11 AM
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

Voetsjoeba
February 7th, 2004, 09:19 AM
I didn't tell you the exact code because I think you should try to find it by yourself :)

novatake
February 7th, 2004, 09:21 AM
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 :)

Voetsjoeba
February 7th, 2004, 09:33 AM
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.

novatake
February 7th, 2004, 09:54 AM
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 :);)

Voetsjoeba
February 7th, 2004, 09:57 AM
Haha, yeah :P

I think it would be easier to change your clock, don't you think ? ;)

eyezberg
February 7th, 2004, 06:20 PM
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..