Adobe Forums

Add Me
Adobe Forums » Adobe Influences » Site Design » Time of the day

Tags:



Reply
  #1 (permalink)  
Old 09-25-2008, 03:27 AM
kerouac57
Guest
 
Posts: n/a
Default Time of the day

:confused;
Howdy!
I have a client who wants time coordinated graphics (I.E. ghosts appear
between 2 a.m. and 4 a.m.)He also wants the light to follow the light cycle of
the actual calendar day. How would i go about that? Does anybody have any ideas?
Thanks.



Reply With Quote


  #2 (permalink)  
Old 09-25-2008, 03:27 AM
Gipoh
Guest
 
Posts: n/a
Default Re: Time of the day

Hello,
You can do this with the Date() function:

myDate = new Date();
hourTextField = myDate.getHours();
minuteTextField = myDate.getMinutes();

Like this you know what time it is on the visitors computer. After this you
can use If statements to change the light.

Reply With Quote


Reply



Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Hairstyles | UFO Videos | Bollywood Wallpapers | Poems  | WWE


All times are GMT. The time now is 02:38 AM.
Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.1.0 ©2007, Crawlability, Inc.