![]() |
| Adobe Forums » Adobe Influences » Site Design » Time of the day |
| Tags: |
![]() |
| LinkBack | Thread Tools | Display Modes |
|
|||
|
: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. |
|
|||
|
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. |
![]() |
| Thread Tools | |
| Display Modes | |
|
|