first commit (2005-12-25)
This commit is contained in:
75
queEs/meAtacan_files/utilities.js
Normal file
75
queEs/meAtacan_files/utilities.js
Normal file
@ -0,0 +1,75 @@
|
||||
function t(){
|
||||
v = new Date();
|
||||
n = new Date();
|
||||
o = new Date();
|
||||
for (cn = 1; cn <= anz; cn++) {
|
||||
bxx = document.getElementById('bxx' + cn);
|
||||
ss = bxx.title;
|
||||
s = ss - Math.round((n.getTime() - v.getTime()) / 1000.);
|
||||
m = 0;
|
||||
h = 0;
|
||||
if (s < 0) {
|
||||
bxx.innerHTML = "-";
|
||||
} else {
|
||||
if (s > 59) {
|
||||
m = Math.floor(s/60);
|
||||
s = s - m * 60;
|
||||
}
|
||||
if (m > 59) {
|
||||
h = Math.floor(m / 60);
|
||||
m = m - h * 60;
|
||||
}
|
||||
if (s < 10) {
|
||||
s = "0" + s;
|
||||
}
|
||||
if (m < 10) {
|
||||
m = "0" + m;
|
||||
}
|
||||
bxx.innerHTML = h + ":" + m + ":" + s + "";
|
||||
}
|
||||
bxx.title = bxx.title - 1;
|
||||
}
|
||||
window.setTimeout("t();", 999);
|
||||
}
|
||||
|
||||
var x = "";
|
||||
var e = null;
|
||||
|
||||
function cntchar(m) {
|
||||
if (window.document.forms[0].text.value.length > m) {
|
||||
window.document.forms[0].text.value = x;
|
||||
} else {
|
||||
x = window.document.forms[0].text.value;
|
||||
}
|
||||
if (e == null) {
|
||||
e = document.getElementById('cntChars');
|
||||
} else {
|
||||
e.childNodes[0].data = window.document.forms[0].text.value.length;
|
||||
}
|
||||
}
|
||||
|
||||
function fenster(target_url,win_name) {
|
||||
var new_win = window.open(target_url,win_name,'resizable=yes,scrollbars=yes,menubar=no,toolbar=no,width=640,height=480,top=0,left=0');
|
||||
new_win.focus();
|
||||
}
|
||||
|
||||
function fenstered(target_url,win_name) {
|
||||
var new_win = window.open(target_url,win_name,'resizable=yes,scrollbars=yes,menubar=no,toolbar=no,width=480,height=480,top=0,left=0');
|
||||
new_win.focus();
|
||||
}
|
||||
|
||||
function haha(z1) {
|
||||
eval("location='"+z1.options[z1.selectedIndex].value+"'");
|
||||
}
|
||||
|
||||
function link_to_gamepay() {
|
||||
document.getElementsByName("lang");
|
||||
document.getElementsByName("name");
|
||||
document.getElementsByName("playerid");
|
||||
document.getElementsByName("checksum");
|
||||
document.getElementsByName("session");
|
||||
}
|
||||
|
||||
function showGalaxy(galaxy, system, planet) {
|
||||
document.location.href="index.php?page=galaxy&no_header=1&galaxy=" + galaxy + "&system=" + system + "&planet=" + planet + "&session=" + session;
|
||||
}
|
||||
Reference in New Issue
Block a user