<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>如何使用swfObject</title>
SEARCH !!
2010/02/26
在html嵌入swf 時的最基本code
<object width="987" height="361">
<param name="movie" value="swf/mainTest.swf" />
<embed src="swf/mainTest.swf" width="987" height="361" allowScriptAccess="always" wmode="transparent"></embed>
</object>
<param name="movie" value="swf/mainTest.swf" />
<embed src="swf/mainTest.swf" width="987" height="361" allowScriptAccess="always" wmode="transparent"></embed>
</object>
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>
<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>
2010/02/12
訂閱:
文章 (Atom)