来自:http://www.cnblogs.com/webwei/archive/2006/11/11/557765.html
网页中的flash经常被拦截,而且由浏览器的不同,可能造成显示的效果和预期的不同。使用js代码插入flash,基本可以解决这个问题。
1.显示一个400*100的透明背景flash:
//show flash
function ShowFlash()
{
var thtml="<EMBED align=left src=images/logo.swf height=100 width=400 type=application/x-shockwave-flash ; quality=high wmode=transparent menu=false></EMBED>";
document.write(thtml);
}
2.可以加一些参数,使js更通用一些,比如:
//show flash
function ShowFlash(h,w)
{
var thtml="<EMBED align=left src=images/logo.swf height="+h+" width="+w+" type=application/x-shockwave-flash ; quality=high wmode=transparent menu=false></EMBED>";
document.write(thtml);
}
3.更多的flash参数可以在网上查到。