function Delay(text){ document.getElementById("LoginError").innerHTML = "Attempting log in....Please wait...";
setTimeout("LoginTry('"+text+"')",1500);
}
function LoginTry(text) { xmlhttp=GetXmlHttpObject(); if (xmlhttp==null) { alert ("Your browser does not support XMLHTTP!"); return; } var url="login.php"; url=url+"?text="+text; xmlhttp.onreadystatechange=stateChanged; xmlhttp.open("GET",url,true); xmlhttp.send(null); }
function stateChanged() { if (xmlhttp.readyState==4) { document.getElementById("LoginError").innerHTML=xmlhttp.responseText; //window.location.href="index.php?login=1"; //document.getElementById("txtHint").innerHTML=xmlhttp.responseText.split("|"); } }
function GetXmlHttpObject() { if (window.XMLHttpRequest) { // code for IE7+, Firefox, Chrome, Opera, Safari return new XMLHttpRequest(); } if (window.ActiveXObject) { // code for IE6, IE5 return new ActiveXObject("Microsoft.XMLHTTP"); } return null; }
Tilladte BB-code-tags: [b]fed[/b] [i]kursiv[/i] [u]understreget[/u] Web- og emailadresser omdannes automatisk til links. Der sættes "nofollow" på alle links.