swfupload的flash按钮无法被遮罩层覆盖解决办法

在网页中,参加Flash动画后,若是应用遮罩层,很可能呈现,遮罩不了Flash的景象。这种景象,可以在object元素内增长以部属性。
< param name=""wmode"" value=""transparent"" />

swfupload中供给对此参数的支撑,只需设备button_window_mode : "transparent",即可


[b]例如[/b]


function initBatchUpload() {
var def = {
button_width : 80,
button_height : 22,
button_text : "批量上传",
file_types : "*.jpg;*.jpeg;*.gif;*.png;*.bmp",
file_size_limit : "600 KB",
button_window_mode : "transparent",
button_placeholder_id : "batchUploadBtn",
upload_error_handler : uploadErrorNoProgress,
file_queue_error_handler : fileQueueErrorNoProgress,
custom_settings : {
progressTarget : "progressTargetNo",
resultTarget : document.getElementById("batchResult"),
hiddenInput : document.getElementById("cutImgs"),
resultImg : "batchImg",
width : "150px",
height : "100px",
isBatch : true,
callback : batchCallBack
}
};
var settings = $.extend(false, params, def);
batchSwfu = new SWFUpload(settings);
}


<span id="batchUploadBtn"></span>
<!-- <span>建议图片像素:<code>480px*800px</code>大小<code>50kB</code>以下</span> -->
<span id="batchResult"></span>
<input type="hidden" id="oldCutImgs" name="oldImgPath" value="${imgPath}" />
<input type="hidden" id="cutImgs" name="imgPath" value="${imgPath}"
data-rule-required="true"
data-msg-required="请上传详情图片" />
<div id="batchImg">
<s:iterator value="#imgPaths" status="index" var="catImgPath">
<div id="catImg_${fn:stripSubstring(catImgPath)}"
style="float: left;">
<img
style="margin: 5px; width: 170px; height: 280px; border: 1px solid rgb(204, 204, 204); opacity: 1;"
src="${srx}${catImgPath}" /> <a
href="javascript:deleteFile('${catImgPath}', 'catImg_${fn:stripSubstring(catImgPath)}','cutImgs')"
style="display: block; width: 60px; margin: 5px; text-align: center;">删除</a>
</div>
</s:iterator>
</div>


  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值