Javascript runs ON the client.
You could set up a separate dynamic page that displays the current server time and have your javascript retrieve that, or you could try having the server embed it's current time in a comment (which will be close to, but not exactly, the server's current time). With a bit of work, you could compare the hours value to the hours from the client side, and have javascript 'subtract' the right amount from the local user's time. It would be accurate enough...
|