【示例】
-
HTML
<embed src="*.swf" wmode="transparent" quality="high"></embed>
-
JS
// FireFox浏览器兼容模式 $j("embed").attr("wmode","opaque"); $j(document).ready(function(){ // IE浏览器兼容模式 var embedTag; $j("embed").each(function(i){ embedTag=$j(this).attr("outerHTML"); if((embedTag!=null)&&(embedTag.length>0)){ embedTag=embedTag.replace(/embed /gi, "embed wmode=\"opaque\" "); $j(this).attr("outerHTML",embedTag); }else{ $j(this).wrap("<div></div>"); } }); });