Aktuelle Ortszeiten berechnen

Aktuelle Ortszeiten berechnen

Sourcecode: (funktioniert nur mit Internet Explorer)

<head>

<meta http-equiv="refresh" content="600">

<span id="pendule5" style="position:absolute;left:10px;top:140px;"></span>
<span id="pendule6" style="position:absolute;left:110px;top:160px;"></span>
<span id="pendule4" style="position:absolute;left:210px;top:180px;"></span>
<span id="pendule1" style="position:absolute;left:310px;top:200px;"></span>
<span id="pendule2" style="position:absolute;left:410px;top:220px;"></span>
<span id="pendule3" style="position:absolute;left:510px;top:240px;"></span>
<span id="n47" style="position:absolute;left:0px;top:-10px;"></span>

<script language="JavaScript">

var szone = 0;
var zeit=0;

//clientzeit beim seitenaufruf
var start=new Date();

//serverzeit beim seitenaufruf
var server = new Date(start);

function serverdate()   //serverzeit mitzaehlen
	{ 
	aktuell = new Date();
	vergangen=aktuell.getTime()-start.getTime();
	aktuellservertime=server.getTime()+vergangen;
	setTimeout("serverdate()",1000);
	}

//Browsercheck 
d=document;
n=navigator.userAgent.toLowerCase();
os=navigator.platform;
OP = (n.indexOf("Opera") != -1) ? 1 : 0;
IE = (d.all && !OP) ? 1 : 0;
N4 = (d.layers && !d.getElementById) ? 1 : 0;
ng = (!d.all && d.getElementById) ? 1 : 0;
N6 = (ng && (n.indexOf('netscape6')!=-1 || n.indexOf('netscape/7')!=-1)) ? 1 : 0;
Mac = (os.indexOf("Mac") != -1) ? 1 : 0;

function clock1() 
{
if (!document.layers && !document.all && !N6) return;
//Winterzeit
//var zone 	= 1;
//Sommerzeit
//var zone 	= 2;
var zone = 2;
var digital = new Date(aktuellservertime);
var ofst	= digital.getTimezoneOffset()/60;
var hours 	= digital.getHours() + parseInt(ofst) + parseInt(zone) + parseInt(szone);
var minutes = digital.getMinutes();
var seconds = digital.getSeconds();
var amOrPm 	= "AM";
if (hours >= 12) amOrPm 	= "PM";
if (hours >= 24) amOrPm 	= "AM";
if (hours > 24) hours 	= hours - 24;
if (hours > 12) hours 	= hours - 12;
if (hours == 0) hours = 12;
	
if (minutes <= 9) minutes = "0" + minutes;
if (seconds <= 9) seconds = "0" + seconds;
dispTime = hours + ":" + minutes + ":" + seconds + " " + amOrPm ;
ausgabe="<font face=verdana,arial size=1 style='font-size:9px'><b>Frankfurt: <br></b>" + dispTime + "</font>";
if (document.layers) 
{
 document.layers.pendule1.document.write(ausgabe);
 document.layers.pendule1.document.close();
}
else if (document.all)
{
 pendule1.innerHTML = ausgabe;
}
else if(N6){
 document.getElementById("pendule1").innerHTML=ausgabe;
}	
 setTimeout("clock1()", 1000);
}

function clock2() 
{
if (!document.layers && !document.all && !N6) return;
//Winterzeit
//var zone 	= 0;
//Sommerzeit
//var zone 	= 1;
var zone 	= 1;
var digital = new Date(aktuellservertime);
var ofst	= digital.getTimezoneOffset()/60;
var hours 	= digital.getHours() + parseInt(ofst) + parseInt(zone) + parseInt(szone);
var minutes = digital.getMinutes();
var seconds = digital.getSeconds();
var amOrPm 	= "AM";
if (hours >= 12) amOrPm 	= "PM";
if (hours >= 24) amOrPm 	= "AM";
if (hours > 24) hours 	= hours - 24;
if (hours > 12) hours 	= hours - 12;
if (hours == 0) hours = 12;
	
if (minutes <= 9) minutes = "0" + minutes;
if (seconds <= 9) seconds = "0" + seconds;
dispTime = hours + ":" + minutes + ":" + seconds + " " + amOrPm ;
ausgabe="<font face=verdana,arial size=1 style='font-size:9px'><b>London: <br></b>" + dispTime + "</font>";
if (document.layers) 
{
document.layers.pendule2.document.write(ausgabe);
document.layers.pendule2.document.close();
}
else if (document.all)
{
pendule2.innerHTML = ausgabe;
}
else if(N6){
document.getElementById("pendule2").innerHTML=ausgabe;
}	
setTimeout("clock2()", 1000);
}

// New York
function clock3() 
{
if (!document.layers && !document.all && !N6) return;
//Winterzeit
//var zone 	= -5;
//Sommerzeit
//var zone 	= -4;
var zone 	= -4;
var digital = new Date(aktuellservertime);
var ofst	= digital.getTimezoneOffset()/60;
var hours 	= digital.getHours() + parseInt(ofst) + parseInt(zone) + parseInt(szone);
var minutes = digital.getMinutes();
var seconds = digital.getSeconds();
var amOrPm 	= "AM";
if (hours >= 12) amOrPm 	= "PM";
if (hours >= 24) amOrPm 	= "AM";
if (hours > 24) hours 	= hours - 24;
if (hours > 12) hours 	= hours - 12;
if (hours == 0) hours = 12;
	
if (minutes <= 9) minutes = "0" + minutes;
if (seconds <= 9) seconds = "0" + seconds;
dispTime = hours + ":" + minutes + ":" + seconds + " " + amOrPm ;
ausgabe="<font face=verdana,arial size=1 style='font-size:9px'><b>New York: <br></b>" + dispTime + "</font>";
if (document.layers) 
{
document.layers.pendule3.document.write(ausgabe);
document.layers.pendule3.document.close();
}
else if (document.all)
{
pendule3.innerHTML = ausgabe;
}
else if(N6){
document.getElementById("pendule3").innerHTML=ausgabe;
}	
setTimeout("clock3()", 1000);
}

// Singapore
function clock4() 
{
if (!document.layers && !document.all && !N6) return;
var zone 	= 8;
var digital = new Date(aktuellservertime);
var ofst	= digital.getTimezoneOffset()/60;
var hours 	= digital.getHours() + parseInt(ofst) + parseInt(zone) + parseInt(szone);
var minutes = digital.getMinutes();
var seconds = digital.getSeconds();
var amOrPm 	= "AM";
if (hours >= 12) amOrPm 	= "PM";
if (hours >= 24) amOrPm 	= "AM";
if (hours > 24) hours 	= hours - 24;
if (hours > 12) hours 	= hours - 12;
if (hours == 0) hours = 12;
	
if (minutes <= 9) minutes = "0" + minutes;
if (seconds <= 9) seconds = "0" + seconds;
dispTime = hours + ":" + minutes + ":" + seconds + " " + amOrPm ;
ausgabe="<font face=verdana,arial size=1 style='font-size:9px'><b>Singapore: <br></b>" + dispTime + "</font>";
if (document.layers) 
{
document.layers.pendule4.document.write(ausgabe);
document.layers.pendule4.document.close();
}
else if (document.all)
{
pendule4.innerHTML = ausgabe;
}
else if(N6){
document.getElementById("pendule4").innerHTML=ausgabe;
}	
setTimeout("clock4()", 1000);
}

// Sydney
function clock5() 
{
if (!document.layers && !document.all && !N6) return;
//Sommerzeit (bei uns im Winter)
//var zone 	= 11;
//Winterzeit (bei uns im Sommer)
//var zone	= 10;
var zone = 10;
var digital = new Date(aktuellservertime);
var ofst	= digital.getTimezoneOffset()/60;
var hours 	= digital.getHours() + parseInt(ofst) + parseInt(zone) + parseInt(szone);
var minutes = digital.getMinutes();
var seconds = digital.getSeconds();
var amOrPm 	= "AM";
if (hours >= 12) amOrPm 	= "PM";
if (hours >= 24) amOrPm 	= "AM";
if (hours > 24) hours 	= hours - 24;
if (hours > 12) hours 	= hours - 12;
if (hours == 0) hours = 12;
	
if (minutes <= 9) minutes = "0" + minutes;
if (seconds <= 9) seconds = "0" + seconds;
dispTime = hours + ":" + minutes + ":" + seconds + " " + amOrPm ;
ausgabe="<font face=verdana,arial size=1 style='font-size:9px'><b>Sydney: <br></b>" + dispTime + "</font>";
if (document.layers) 
{
document.layers.pendule5.document.write(ausgabe);
document.layers.pendule5.document.close();
}
else if (document.all)
{
pendule5.innerHTML = ausgabe;
}
else if(N6){
document.getElementById("pendule5").innerHTML=ausgabe;
}	
setTimeout("clock5()", 1000);
}

// Tokyo
function clock6() 
{
if (!document.layers && !document.all && !N6) return;
var zone 	= 9;
var isitlocal = false;
var digital = new Date(aktuellservertime);
var ofst	= digital.getTimezoneOffset()/60;
var hours 	= digital.getHours() + parseInt(ofst) + parseInt(zone) + parseInt(szone);
var minutes = digital.getMinutes();
var seconds = digital.getSeconds();
var amOrPm 	= "AM";
if (hours >= 12) amOrPm 	= "PM";
if (hours >= 24) amOrPm 	= "AM";
if (hours > 24) hours 	= hours - 24;
if (hours > 12) hours 	= hours - 12;
if (hours == 0) hours = 12;
	
if (minutes <= 9) minutes = "0" + minutes;
if (seconds <= 9) seconds = "0" + seconds;
dispTime = hours + ":" + minutes + ":" + seconds + " " + amOrPm ;
ausgabe="<font face=verdana,arial size=1 style='font-size:9px'><b>Tokyo: <br></b>" + dispTime + "</font>";
if (document.layers) 
{
document.layers.pendule6.document.write(ausgabe);
document.layers.pendule6.document.close();
}
else if (document.all)
{
pendule6.innerHTML = ausgabe;
}
else if(N6){
document.getElementById("pendule6").innerHTML=ausgabe;
}	
setTimeout("clock6()", 1000);
}

// N47 css bug
function fn47() 
{
if (!document.layers && !document.all && !N6) return;

ausgabe="<font face=verdana,arial size=1 style='font-size:9px'></font>";
if (document.layers) 
{
document.layers.n47.document.write(ausgabe);
document.layers.n47.document.close();
}
}
</script>

</head>

<body onload="serverdate();clock1();clock2();clock3();clock4();clock5();clock6();fn47();">
Sponsoren und Investoren

Sponsoren und Investoren sind jederzeit herzlich willkommen!
Wenn Sie die Information(en) auf dieser Seite interessant fanden, freuen wir uns über eine kleine Spende. Empfehlen Sie uns bitte auch in Ihren Netzwerken (z. B. Twitter, Facebook oder Google+). Herzlichen Dank!

Nach oben Sitemap
Impressum & Kontakt