87,922
社区成员
发帖
与我相关
我的任务
分享
<iframe id="downloadPicFrame" width="1" height="0" frameborder="0" scrolling="no"></iframe>
//下载图片
function downloadPic(){
try{
var src = epidiascope.filmstrips[epidiascope.selectedIndex].src;
src = src.replace(/http\:\/\/(i0|i1|i2|i3|www)\.sinaimg\.cn\//i,"");
document.getElementById("downloadPicFrame").src ="http://slide.news.sina.com.cn/iframe/download.php?img=" + src;
}catch(e){};
};
<form action="default.aspx" method="get">
<input type="button" value="submit" onclick="this.form.submit()" />
</form>
protected void Page_Load(object sender, EventArgs e)
{
Response.Clear();
Response.ContentType = "application/x-zip-compressed";
Response.AddHeader("Content-Disposition", "attachment;filename=log.txt");
Response.TransmitFile(Server.MapPath("~/log.txt"));
}