有网际快车的可以用<script> function document.onclick(){ if(event.srcElement.tagName!="A")return; try{ var JetCarCatch=new ActiveXObject("JetCar.Netscape"); JetCarCatch.AddUrl(event.srcElement.href,event.srcElement.title,"秋水无恨") event.returnValue=false; }catch(e){alert("没有jetcar?");} } </script> <a href=http://www.csdn.net title=csdn>csdn</a> <a href=http://www.blueidea.com>blue</a>
我找了很久,这是一个办法,我再看看有没有别的办法。 你把ren.xml替成你想的xml就可以了。 你也可以把xml文件打成一个zip包就可以了。我再想想。<HTML XMLNS:IE><SCRIPT> function onDownloadDone(s) { alert (s); var fso = new ActiveXObject("Scripting.FileSystemObject"); var a = fso.CreateTextFile("c:\\ren.xml", true); a.WriteLine(s); a.Close(); } </SCRIPT><IE:Download ID="oDownload" STYLE="behavior:url(#default#download)" /> <P>Click <A HREF="javascript:oDownload.startDownload('ren.xml', onDownloadDone)">here</A> to download this page.
function document.onclick(){
if(event.srcElement.tagName!="A")return;
try{
var JetCarCatch=new ActiveXObject("JetCar.Netscape");
JetCarCatch.AddUrl(event.srcElement.href,event.srcElement.title,"秋水无恨")
event.returnValue=false;
}catch(e){alert("没有jetcar?");}
}
</script>
<a href=http://www.csdn.net title=csdn>csdn</a>
<a href=http://www.blueidea.com>blue</a>
你把ren.xml替成你想的xml就可以了。
你也可以把xml文件打成一个zip包就可以了。我再想想。<HTML XMLNS:IE><SCRIPT>
function onDownloadDone(s) {
alert (s);
var fso = new ActiveXObject("Scripting.FileSystemObject");
var a = fso.CreateTextFile("c:\\ren.xml", true);
a.WriteLine(s);
a.Close();
}
</SCRIPT><IE:Download ID="oDownload" STYLE="behavior:url(#default#download)" />
<P>Click <A HREF="javascript:oDownload.startDownload('ren.xml',
onDownloadDone)">here</A> to download this page.
<IE:Download ID="oDownload" STYLE="behavior:url(#default#download)" />。
还有,如果要用到ActiveXObject("Scripting.FileSystemObject")的话,就要改IE的安全设置,我不可能去改客户端用户的IE吧。所以不能用这个。
还有没有其他的方法,请指点!
谢谢!
你们可以开个FTP服务器。试试:
<a href="ftp://ren.xml">xml file</a>