xmlHttp.status == 302 ) {
return (result = true);
}
}
};
xmlHttp.open(“HEAD”, url, true);
xmlHttp.send(null);
};
var GetXmlHttpObject = function() {
var xmlHttp = null;
try {
// Firefox, Opera 8.0+, Safari
xmlHttp = new XMLHttpRequest();
}
catch (e) {
// Internet Explorer
try {
// Older IE
xmlHttp = new ActiveXObject(“Msxml2.XMLHTTP”);
} catch (e) {
// New IE
xmlHttp = new ActiveXObject(“Microsoft.XMLHTTP”);
}
}
return xmlHttp;
};
// 就是用于检查服务器上指定的Flash文件是否存在
checkFlashURL(flashURL);
window.onload = function() {
if ( result ) {
swfobject.embedSWF(flashURL, “flashcontent”, “304”, “367”, “10.0.0”, “expressInstall.swf”, {}, { quality:”autohigh”, wmode:”transparent” }, {});
}
else {
window.alert(“您的Flash地址无效,请仔细检查”); // 只是用于调试时检查Flash地址地否正确
}
}
})();
</script>
</head>
<body>
<form id=”Form1″>
<div id=”flashcontent”>
<a href=”http://www.adobe.com/go/getflashplayer”>
<img src=”http://huoche.7234.cn/images/jb51/x1upv0pcwh3.gif” alt=”Get Adobe Flash player” border=”0″ />
</a>
</div>
</form>
</body>
</html>
哇,用了数小时在把这两篇文字折腾好,不小心在公司呆到快22点了,保安来赶人了,想草草收场吧,明天上班得空再来雕琢一下文字,呵呵。









