<script>
// JavaScript Document
function XHConn()
{
var xmlhttp, bComplete = false;
try { xmlhttp = new ActiveXObject("Msxml2.XMLHTTP"); }
catch (e) { try { xmlhttp = new ActiveXObject("Microsoft.XMLHTTP"); }
catch (e) { try { xmlhttp = new XMLHttpRequest(); }
catch (e) { xmlhttp = false; }}}
if (!xmlhttp) return null;

this.Method = "GET";
this.URL = "";
this.Data = "";
this.Text = function(){return xmlhttp.responseText;};
this.onComplete = function(){};
this.onError = function(){};
this.Abort = function(){xmlhttp.abort();};

this.Send = function()
{
if (!xmlhttp) return false;
bComplete = false;
sMethod = this.Method.toUpperCase();
sURL=this.URL;
sVars=this.Data;
fnDone=this.onComplete;
fnError=this.onError;

try {
if (sMethod == "GET")
{
xmlhttp.open(sMethod, sURL, true);
sVars = "";
}
else
{
xmlhttp.open(sMethod, sURL, true);
xmlhttp.setRequestHeader("Method", "POST "+sURL+" HTTP/1.1");
xmlhttp.setRequestHeader("Content-Type", "application/x-www-form-urlencoded");
}
xmlhttp.onreadystatechange = function(){
if (xmlhttp.readyState == 4 && !bComplete)
{
bComplete = true;
if (xmlhttp.status == 200) { fnDone();}; else { fnError(); };
}};
xmlhttp.send(sVars);
}
catch(z) { return false; }
return true;
};
return this;
}
function show_ad()
{
document.getElementById("lightbox").style.display="block";
with (document.getElementById("overlay").style) {
display="block";
width = 776;
height = document.body.scrollHeight;
}
selects = document.getElementsByTagName("select");
var len = selects.length;
for (i = 0; i != len; i++) {
selects[i].style.visibility = "hidden";
}
}function close_ad()
{
document.getElementById("overlay").style.display="none";
document.getElementById("lightbox").style.display="none";
    selects = document.getElementsByTagName("select");
var len = selects.length;
for (i = 0; i != len; i++) {
selects[i].style.visibility = "visible";
}
}
var dd=XHConn();
alert(typeof(dd));
</script>ie正常ff就不正常
我测试一下发现是这里问题 this.Send = function()
{
if (!xmlhttp) return false;
bComplete = false;
sMethod = this.Method.toUpperCase();
sURL=this.URL;
sVars=this.Data;
fnDone=this.onComplete;
fnError=this.onError;

try {
if (sMethod == "GET")
{
xmlhttp.open(sMethod, sURL, true);
sVars = "";
}
else
{
xmlhttp.open(sMethod, sURL, true);
xmlhttp.setRequestHeader("Method", "POST "+sURL+" HTTP/1.1");
xmlhttp.setRequestHeader("Content-Type", "application/x-www-form-urlencoded");
}
xmlhttp.onreadystatechange = function(){
if (xmlhttp.readyState == 4 && !bComplete)
{
bComplete = true;
if (xmlhttp.status == 200) { fnDone();}; else { fnError(); };
}};
xmlhttp.send(sVars);
}
catch(z) { return false; }
return true;
};哪里ff
不支持了啊