|
★☆☆☆☆☆☆☆☆☆ |
积分:58 |
发帖:62 |
登录:2024/3/26 |
注册:2006/9/17 |
|
(4楼)
<?xml version="1.0" encoding="gb2312"?>
<component>
<?component error="true" debug="true"?>
<public>
<property name="Data" />
<property name="Ready" />
<method name="GetFile">
<parameter name="URL" />
<parameter name="f" />
</method>
<method name="Abort">
</method>
</public>
<implements type="Behavior">
<event name="DownImgOk" />
</implements>
<object progid="Microsoft.XmlHttp" id="Http" />
<script language="javascript">
<![CDATA[
var Data;
function onReady()
{
Ready=Http.readyState;
if(Ready<4)return;
Data = Http.responseBody;
Abort();
fireEvent("DownImgOk");
Ready=0;
}
function GetFile(URL,f)
{
try{
Http.onreadystatechange = onReady;
Http.open("GET",URL,f,"","");
Http.setRequestHeader("Referer",URL.replace(/^(.*?[^\/])\/[^\/].*$/,"$1"));
Http.send(null);
}catch(e){
}
}
function Abort()
{
Http.abort();
}
]]>
</script>
</component>
|