Weltzeit Sonstiges 0.9 1 1060788154 1060788251 1 newClock(+-x) gibt die std an die von der UTC zeit für die jeweilige zeitzone ab- oder aufaddiert werden muß... <script> function Clock (offsetSec, style) { this.id = Clock.cnt; Clock.clocks[Clock.cnt++] = this; this.offsetSec = offsetSec || 0; this.style = style || ''; this.writeHTML(); this.startTimer(); } function Clock_writeHTML () { var html = ''; html += '<SPAN'; html += ' ID="Clock' + this.id + '"'; html += this.style ? ' CLASS="' + this.style+ '"' : ''; html += '>'; html += this.formatTime(); html += '<\/SPAN>'; document.write(html); } Clock.prototype.writeHTML = Clock_writeHTML; function Clock_formatTime () { var time = new Date(); time.setTime(time.getTime() + this.offsetSec * 3600000); var hours = time.getUTCHours(); var minutes = time.getUTCMinutes(); var seconds = time.getUTCSeconds(); var html = ''; html += hours < 10 ? '0' + hours : hours; html += ':'; html += minutes < 10 ? '0' + minutes : minutes; html += ':'; html += seconds < 10 ? '0' + seconds : seconds; return html; } Clock.prototype.formatTime = Clock_formatTime; function Clock_startTimer () { this.tid = setInterval('Clock.clocks[' + this.id + '].updateTime()', 1000); } Clock.prototype.startTimer = Clock_startTimer; function Clock_updateTime () { document.all['Clock' + this.id].innerHTML = this.formatTime(); } Clock.prototype.updateTime = Clock_updateTime; Clock.cnt = 0; Clock.clocks = new Array(); </SCRIPT> <table border> <tr> <th>Chicago:</th><th> <script> new Clock(-5); </SCRIPT></th><br> </tr><tr> <th>NewYork:</th><th> <script> new Clock(-4); </SCRIPT></th><br> </tr> <th>London:</th><th> <script> new Clock(1); </SCRIPT></th><br> </tr><tr> <th>Frankfurt:</th><th> <script> new Clock(2); </SCRIPT></th><br> </tr><tr> <th>Moskau:</th><th> <script> new Clock(4); </SCRIPT></th><br> </tr><tr> <th>HongKong:</th><th> <script> new Clock(8); </SCRIPT></th><br> </tr><tr> <th>Tokio:</th><th> <script> new Clock(9); </SCRIPT></th><br> </tr><tr> <th>Sydney:</th><th> <script> new Clock(10);</SCRIPT></th> </table>