用frontpage做网页时超链接想让它一点就直接下载怎么做?菜鸟请问

来源:百度知道 编辑:UC知道 时间:2024/06/06 03:32:43
frontpage2000,
下载的超链接怎么做?
还有要把提供下载的文件放在哪里呢?放在网络空间里么?还是做网页的这个文件夹里?
菜鸟哦,不懂

一般链接除了IE能识别的文件格式外,都是点击后下载!

如果要使所有文件类型都下载的话,要使用程序操作·
function downloadFile(filepath,file_Rname)
'on error resume next

response.buffer=true

Set fso = Server.CreateObject("Scripting.FileSystemObject")
filepath = server.MapPath(filepath)
Set S = server.CreateObject("Adodb.Stream")
S.Mode=3
S.Type=1
S.Open
S.LoadFromFile(filepath)

'开始下载
if Err.Number>0 then
Response.Status="404"
else

Response.AddHeader "Content-Disposition","attachment; filename=" & file_Rname

Response.CharSet = "UTF-8"
'application/download_only 使浏览器无法辨别文件类型,防止在浏览器内直接打开
Response.ContentType="application/download_only"

Range=Mid(Request.