Copyright 2001 by Bino (Norman Rath)
Nur die Autokick anzeige
folgendes in messages.html einfügen:
Anzeige kombiniert mit Online-Anzeige-Addon
folgendes in messages.html einfügen:
Nur die Autokick anzeige
folgendes in messages.html einfügen:
Quellcode
- <script language="JavaScript">
- function setAutokickTime()
- {
- window.setTimeout("setAutokickTime()",1000);
- now = new Date();
- diff1 = Math.floor((autokick-(now.getTime()-form.lastactive.value))/1000);
- hours1 = Math.floor(diff1/3600);
- mins1 = Math.floor(diff1/60) % 60;
- secs1 = diff1 % 60;
- if (hours1<10)
- hours1 = "0"+hours1;
- if (mins1<10)
- mins1 = "0"+mins1;
- if (secs1<10)
- secs1 = "0"+secs1;
- window.status = "Zeit bis zum Autokick: " + hours1 + ":" + mins1 + ":" + secs1;
- }
- now = new Date();
- starttime = now.getTime();
- window.setTimeout("setAutokickTime()",1000);
- </script>
Anzeige kombiniert mit Online-Anzeige-Addon
folgendes in messages.html einfügen:
Quellcode
- <script language="JavaScript">
- function setOnlineTime()
- {
- window.setTimeout("setOnlineTime()",1000);
- now = new Date();
- diff1 = Math.floor((autokick-(now.getTime()-form.lastactive.value))/1000);
- hours1 = Math.floor(diff1/3600);
- mins1 = Math.floor(diff1/60) % 60;
- secs1 = diff1 % 60;
- if (hours1<10)
- hours1 = "0"+hours1;
- if (mins1<10)
- mins1 = "0"+mins1;
- if (secs1<10)
- secs1 = "0"+secs1;
- diff = Math.floor((now.getTime()-starttime)/1000);
- hours = Math.floor(diff/3600);
- mins = Math.floor(diff/60) % 60;
- secs = diff % 60;
- if (hours<10)
- hours = "0"+hours;
- if (mins<10)
- mins = "0"+mins;
- if (secs<10)
- secs = "0"+secs;
- window.status = "Online-Zeit: " + hours + ":" + mins + ":" + secs + " --- Zeit bis zum Autokick: " + hours1 + ":" + mins1 + ":" + secs1;
- }
- now = new Date();
- starttime = now.getTime();
- window.setTimeout("setOnlineTime()",1000);
- </script>
926 mal gelesen