当前位置: 首页 > 工具软件 > embedSWF > 使用案例 >

swfobject.embedSWF参数

甄正信
2023-12-01

文章来源:http://blog.csdn.net/wangjj_016/article/details/5740309


2.0  embedSWF: function(swfUrlStr, replaceElemIdStr, widthStr, heightStr, swfVersionStr, xiSwfUrlStr, flashvarsObj, parObj, attObj)

2.2   embedSWF: function(swfUrlStr, replaceElemIdStr, widthStr, heightStr, swfVersionStr, xiSwfUrlStr, flashvarsObj, parObj, attObj, callbackFn)

swfUrlStr:(String,必须的)flash地址url,

replaceElemIdStr,:(String,必须的)替换元素的id

widthStr:(String,必须的)flash宽度,类型为字符串

heightStr:(String,必须的)flash高度

swfVersionStr:(String,必须的)指定你发布的SWF对应的Flash Player版本(格式为:major.minor.release)

xiSwfUrlStr:(String,可选的)指定express install SWF的URL并激活Adobe express install

flashvarsObj:(Object,可选的)用name:value对指定你的flashvars

parObj:(Object,可选的)用name:value对指定你的嵌套object元素的params

attObj:(Object,可选的)用name:value对指定object的属性

callbackFn:(Function,可选的)flash加载完成的回调函数,2.2才支持。

callbackFn参数:{success:true/false,id:"object id",ref:DOM Element}

  • success, Boolean to indicate whether the embedding of a SWF was success or not
  • id, String indicating the ID used in swfobject.registerObject
  • ref, HTML object element reference (returns undefined when success=false)

 类似资料: