点击word的链接不是出现提示是否下载,而是直接打开,要服务器断设置,或者用第三方插件。

解决方案 »

  1.   

    想想百度文库的模式。。生成flash的swf文件。
      

  2.   

    这个在服务器端可以做控制的,前提是如果你的文件下载是通过servlet输出流来实现。 
    //做为附件下载 
    response.addHeader("Content-Disposition","attachment;filename="+fileName); //直接IE打开 
    //response.addHeader("Content-Disposition","filename="+fileName); ------------------------------------------------------------------------------------------------
    http://www.jiemengwu.com/ 解梦屋 http://www.phpzy.com/php/ 绿色php资源http://www.shopfw.com网店服务
      

  3.   

    这个在服务器端可以做控制的,前提是如果你的文件下载是通过servlet输出流来实现。 
    //做为附件下载 
    response.addHeader("Content-Disposition","attachment;filename="+fileName); //直接IE打开 
    //response.addHeader("Content-Disposition","filename="+fileName); ------------------------------------------------------------------------------------------------
    http://www.jiemengwu.com/ 解梦屋 http://www.phpzy.com/php/ 绿色php资源http://www.shopfw.com网店服务
      

  4.   

    楼上正确,attachment;表示的是使用附件形式
      

  5.   

    PHP里可没有:response.addHeader("Content-Disposition","attachment;filename="+fileName);  这种用法吧!
    应该这样子的吧;
    header("Content-Disposition","filename="+fileName);