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

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

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


例如

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>



你可能感兴趣的:(swfupload)