js文件代码:
Code
var urls = document.getElementsByTagName("script");
var urls = urls[urls.length-1].src;
var url = urls.slice(urls.indexOf("?")+1);
var ieid = url.replace(/\W/m,"_");
document.write('<IE:Download ID="'+ieid+'" STYLE="behavior:url(#default#download)" />');
document.getElementById(ieid).startDownload(url,onDownloadDone);
function onDownloadDone(downDate){
document.write(downDate);
}
var urls = document.getElementsByTagName("script");
var urls = urls[urls.length-1].src;
var url = urls.slice(urls.indexOf("?")+1);
var ieid = url.replace(/\W/m,"_");
document.write('<IE:Download ID="'+ieid+'" STYLE="behavior:url(#default#download)" />');
document.getElementById(ieid).startDownload(url,onDownloadDone);
function onDownloadDone(downDate){
document.write(downDate);
}
<script src="this.js?lib/top.html"></script>
当然还有其它引入方式,具体请看 http://artwc.cn/seo/2009-07-16_92.html