SWFObject 2.0版本
日期:2009-01-27 阅读:93 分类:Javascript
SWFObject 2.0,已经在code.google.com上建立了开源文档[http://code.google.com/p/swfobject/]。
SWFObject2.0现提供两个主要调用方法。
1.swfobject.registerObject(flashContentId, flashVersion,expressInstallUrl );
flashContentId为Flash的ID;
flashVersion为播放SWF的Player版本;
expressInstallUrl为Flash Player更新安装的swf调用地址;如果当前版本低于flashVersion将自动更新。
2.swfobject.embedSWF(swfUrl, replaceElementId, swfWidth, swfHeight, flashVersion,expressInstallUrl, flashvars, params, attributes);
swfUrl为调用swf的地址;
replaceElementId为要用于替换成flash的可显示容器的ID;
swfWidth为swf的宽度;
swfHeight为swf的高度;
flashVersion为播放SWF的Player版本;
expressInstallUrl为Flash Player更新安装的swf调用地址;如果当前版本低于flashVersion将自动更新。
flashvars为flashvars传递的变量值;
params为flash player控件的参数设置;如menu=”false” ;
attributes为flash player控件的属性值设置;如class=”flashstyle”;
SWFObject下载包:http://swfobject.googlecode.com/files/swfobject_2_0.zip
SWFObject的html生成器:http://swfobject.googlecode.com/files/swfobject_2_0_generator_1_1_html.zip
SWFObject的官方Blog:http://blog.deconcept.com/swfobject/
本页链接: http://www.scriptlover.com/static/351-swfobject
标签: swfobject
相关文章
网友评论
#1: 2009-1-29 15:49:00 by 小淡
test for reply
#2: 2011-10-5 18:39:00 by Winter
ymmd with that anwesr! tx