Web/JS/OpenWin.js
(开头部分) 2KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
var xmlhttp;
function openwin(url,w,h,top)
{
var left = (screen.availWidth - w)/2;
window.showModalDialog(url,"",'dialogWidth:' + w + 'px;dialogLeft:' + left + ';dialogTop:' + top + ';dialogHeight:' + h + 'px;scroll:yes;help:0;status:no;');
}
function winclose(val)
{
window.returnValue = val;
window.close();
}
var Ajax = function(url)
{
var xmlhttp = null;
var result = null;
this.url = url;
this.getResult = function()
{
return result;
}
this.createXMLHTTP = function()
{
if(window.ActiveXObject)
{
xmlhttp = new ActiveXObject("Msxml2.XMLHTTP");
}
else
{
xmlhttp = new XMLHttpRequest();
}
}
this.getData = function()
{
if(xmlhttp.readyState == 4)
{
if(xmlhttp.status == 200)
{
result = xmlhttp.responseText;
}
else
{
alert("status is error!");
}
}
}
this.send = function()
{
this.createXMLHTTP();
xmlhttp.onreadystatechange = this.getData;
xmlhttp.open("POST",this.url,false);
xmlhttp.send();
}
后面还有 49 行代码,购买后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明
AI 解读
登录后可用,每次 10 积分,解读结果公开显示在下面。
还没有人解读过这个文件。
