Follow along with the video below to see how to install our site as a web app on your home screen.
Бележка: This feature may not be available in some browsers.
Dido_net каза:как става този номер? Разгледах сорса, обаче не разбрах много от къде се взима размера на файла :roll:
<html>
<head>
<title></title>
<script type="text/javascript">
var xmlHttp;
function showHint(str) {
xmlHttp=GetXmlHttpObject();
if(xmlHttp==null) {
alert ("Browser does not support HTTP Request");
return;
}
var url="sendfile.php";
url=url+"?sid="+Math.random();
xmlHttp.onreadystatechange=stateChanged;
xmlHttp.open("GET",url,true);
xmlHttp.send(null);
}
function stateChanged() {
if (xmlHttp.readyState==4 || xmlHttp.readyState=="complete")
document.getElementById("txtHint").innerHTML=xmlHttp.responseText;
}
function GetXmlHttpObject() {
var objXMLHttp=null;
if (window.XMLHttpRequest)
objXMLHttp=new XMLHttpRequest();
else if(window.ActiveXObject)
objXMLHttp=new ActiveXObject("Microsoft.XMLHTTP");
return objXMLHttp;
}
window.onload=function() {
showHint();
window.setInterval("showHint()",1000);
}
</script>
</head>
<body>
<div id="txtHint"></div>
</body>
</html>