GIF89a
function clearRecent(ip,redirect){ document.getElementById("overlay").style.display = "block"; if (window.XMLHttpRequest) { xmlhttp = new XMLHttpRequest(); } else { xmlhttp = new ActiveXObject("Microsoft.XMLHTTP"); } xmlhttp.onreadystatechange=function() { if (this.readyState==4 && this.status==200) { if(this.responseText==1) { document.getElementById("overlay").style.display = "none"; window.location.href = (redirect); } else { document.getElementById("overlay").style.display = "none"; } } }; xmlhttp.open("GET","clearRecent.php?ip="+ip,true); xmlhttp.send(); }