SEARCH !!

2010/02/25

swfObject wmode

解決swfObject 無法背景透明問題

<script type="text/javascript" src="swfObject/swfobject.js"></script>
<script type="text/javascript">

var flashvars = {}; <--做一個空的為了下方塞參數用
var params = {};
params.wmode = "transparent";

swfobject.embedSWF("swf/mainTest.swf", "mainSWF", "987", "361", "9.0.0", "swfObject/expressInstall.swf", flashvars, params); <--參數有順序性,所以要塞flashvars

</script>

沒有留言:

張貼留言