了解 SWFObject 2.0 应用
SWFObject 是目前较好的 Flash 嵌入代码解决方案,属于 JavaScript 库。
SWFObject 2.0 文档:
http://code.google.com/p/swfobject/wiki/documentation
SWFObject 2.0 文档中文翻译:
http://farthinker.cn/documents/swfobject-2-documentation/
以下代码是工作应用中的部分:
国内已应用该2.0版本的网站有:土豆网
本人工作中发现一国外网站应用了1.4.4版本的:http://byo.diamond.com/create_your_own/ring/stones.php。
另:国内的QQ音乐网站用的1.5版本以下:SWFObject 代码在其中的all_v2.js中。
SWFObject 2.0 文档:
http://code.google.com/p/swfobject/wiki/documentation
SWFObject 2.0 文档中文翻译:
http://farthinker.cn/documents/swfobject-2-documentation/
以下代码是工作应用中的部分:
1
(function(){
2
var flashvars = {};
3
var params = {
4
menu: 'false',
5
wmode: 'transparent'
6
};
7
var attributes = {
8
name: 'banner'
9
};
10
swfobject.embedSWF("..//flash/1.swf", "banner", "791", "197", "9.0.0", "..//flash/expressInstall.swf", flashvars, params, attributes);
11
}());
![](https://www.cnblogs.com/Images/OutliningIndicators/ExpandedBlockStart.gif)
2
![](https://www.cnblogs.com/Images/OutliningIndicators/ExpandedSubBlockStart.gif)
3
![](https://www.cnblogs.com/Images/OutliningIndicators/ExpandedSubBlockStart.gif)
4
![](https://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif)
5
![](https://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif)
6
![](https://www.cnblogs.com/Images/OutliningIndicators/ExpandedSubBlockEnd.gif)
7
![](https://www.cnblogs.com/Images/OutliningIndicators/ExpandedSubBlockStart.gif)
8
![](https://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif)
9
![](https://www.cnblogs.com/Images/OutliningIndicators/ExpandedSubBlockEnd.gif)
10
![](https://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif)
11
![](https://www.cnblogs.com/Images/OutliningIndicators/ExpandedBlockEnd.gif)
国内已应用该2.0版本的网站有:土豆网
本人工作中发现一国外网站应用了1.4.4版本的:http://byo.diamond.com/create_your_own/ring/stones.php。
另:国内的QQ音乐网站用的1.5版本以下:SWFObject 代码在其中的all_v2.js中。