我试了一下直接做个链接就可以了。
<a href="*.doc">链接</a>
<a href="*.doc">链接</a>
解决方案 »
- 求JS简单多图切换焦点图渐变代码
- 小问题,js动态td设置属性
- 初学ext3 无法从后台获取数据
- 哪位大哥大姐指导一下啊,我使用的您编写的树形控件1.0,怎么实现点开一个节点,其它的展开节点关闭的功能啊
- 怎么实现点击文字变背景色[图片]这样的效果?急!
- 如何实现每次打开的窗口都是新窗口?
- 这段代码真正就3行,谁能告诉我什么意思?
- if (mm.length==1) mm='0'+String(mm);本来mm=2,长度是1,但就是不在前边加零?
- Javascript在IE和Netscape中如何兼容?
- menu.setCapture && menu.setCapture();是什么意思
- 有JAVASCRIPT编写的算法书吗? 无聊者勿扰!!!!
- net_lover(孟子E章) 麻烦进一下
<a href="word文件.doc">word文件的链接</a>只是 IE 客户端必须安装 Office2000 啦。
Set rs=Server.CreateObject("ADODB.recordset")
sql="select filevalue,fileContentType from files where id=" & trim(request("id"))
rs.open sql,conn,1,1
Response.ContentType = rs("fileContentType")
Response.AddHeader "Content-Length", rs("文件大小")
Response.CharSet = "gb2312"
Response.AddHeader "Content-Transfer-Coding","binary"
Response.AddHeader "Content-Type","application/msword; name="""&rs("文件名")&""""
Response.AddHeader "Content-Disposition", "inline; filename=" &rs("文件名")
fso读文件,response.binarywrite写
rs.close
set rs=nothing
set conn=nothing
<%
dim oADO , oStream
set oADO = Server.CreateObject("ADODB.Stream")
oADO.Type = 1
oADO.Open
oADO.LoadFromFile "D:\www\TEST\word.doc" oStream = oADO.Read(-1) Response.AddHeader "Content-Length", oADO.size
Response.CharSet = "gb2312"
Response.AddHeader "Content-Transfer-Coding","binary"
Response.AddHeader "Content-Type","application/msword; name=""word.doc"""
Response.AddHeader "Content-Disposition", "inline; filename=word.doc"Response.binarywrite oStream
%>
<script>
wsh.Run("aa.doc");
</script>