没有合适的资源?快使用搜索试试~ 我知道了~
资源推荐
资源详情
资源评论
模态窗口,解决下载问题
代码如下:
<base id="goDownload" target="_self" />
<script type="text/javascript">
function showMsg()
{
var downloadBase=document.getElementById("goDownload");
var downloadBox=document.getElementById("download");
download.src=document.URL;
downloadBase.target="download";
setTimeout("CancelMsg()",1000);
}
function CancelMsg()
{
var downloadBase=document.getElementById("goDownload");
downloadBase.target="_self";
}
</script>
<table width="700px" border="0" cellpadding="0" cellspacing="0" align="center" style=" margin-top:10px;">
<asp:Repeater ID="RepeaterFileManager" runat="server" OnItemCommand="RepeaterFileManager_OnItemCommand">
<HeaderTemplate>
<tr align="center" valign="middle" style="background-color:#A4E3F4;">
<td style="width:100px; height:42px;" class="td13">年 级</td>
<td style="width:150px; height:42px;" class="td13">班级名称</td>
<td style="width:150px; height:42px;" class="td13">课程名称</td>
<td style="width:100px; height:42px;" class="td13">上传教师</td>
<td style="width:100px; height:42px;" class="td13">文件类型</td>
<td style="width:100px; height:42px;" class="td14">下载</td>
</tr>
代码如下:
<base id="goDownload" target="_self" />
<script type="text/javascript">
function showMsg()
{
var downloadBase=document.getElementById("goDownload");
var downloadBox=document.getElementById("download");
download.src=document.URL;
downloadBase.target="download";
setTimeout("CancelMsg()",1000);
}
function CancelMsg()
{
var downloadBase=document.getElementById("goDownload");
downloadBase.target="_self";
}
</script>
<table width="700px" border="0" cellpadding="0" cellspacing="0" align="center" style=" margin-top:10px;">
<asp:Repeater ID="RepeaterFileManager" runat="server" OnItemCommand="RepeaterFileManager_OnItemCommand">
<HeaderTemplate>
<tr align="center" valign="middle" style="background-color:#A4E3F4;">
<td style="width:100px; height:42px;" class="td13">年 级</td>
<td style="width:150px; height:42px;" class="td13">班级名称</td>
<td style="width:150px; height:42px;" class="td13">课程名称</td>
<td style="width:100px; height:42px;" class="td13">上传教师</td>
<td style="width:100px; height:42px;" class="td13">文件类型</td>
<td style="width:100px; height:42px;" class="td14">下载</td>
</tr>
资源评论
- zhaocheng7611152012-06-12无法解决问题,抄袭贴。
- zeom_91002013-07-11无法解决问题,。,
- 海上东浦2013-01-26没有解决问题,模态窗口实现的功能还是有限的,如果紧紧是给用户查看的页面可以用这种方式,只要是和服务器有交互,特别是文件的上传下载,建议不要用模态窗口。一些浏览器对模态窗口兼容性越来越差。还是少用吧。
- mj200507492014-02-13确实无法解决问题
- dandanlan7892014-12-05无法解决问题,。,
LiuLiPan
- 粉丝: 0
- 资源: 1
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功