[size=1]I’m creating a header, which requires several international times. [Header found here]. The first clock seems to work fine. The problem is with the other clocks. I can’t figure out what numbers to use in place of the 30. [hours = hours*30;]
Here is the code for the clock that seems to work fine.
[/size][indent][size=1]time=new Date(); // time object[/size]
[size=1]minutes = time.getMinutes()[/size]
[size=1]hours = time.getHours()[/size]
[size=1]hours = hours + (minutes/60);[/size]
[size=1]minutes = minutes6; // calculating minutes[/size]
[size=1]hours = hours30; // calculating hours[/size]
[size=1]min._rotation=minutes; // giving rotation property[/size]
[size=1]hour._rotation=hours; // giving rotation property
[/size][/indent][size=1]If anyone has any ideas on this, I would really appreciate it. Thank you.
[url=“http://www.benjaminkopel.com”]
Skimo
[/size]