swfobject getFlashPlayerVersion在IE中不起作用

时间:2009-03-05 10:23:41

标签: flash internet-explorer swfobject

swfobject.getFlashPlayerVersion在IE中不起作用,有什么替代方案吗?

2 个答案:

答案 0 :(得分:2)

只是一个想法:改为尝试swfobject.hasFlashPlayerVersion(versionStr)

答案 1 :(得分:0)

如果您的Flash版本是10.0.12,则以下代码允许您检索版本nr:

var playerVersion = swfobject.getFlashPlayerVersion(); // returns a JavaScript object
var majorVersionNr = playerVersion.major; //returns the major nr: 10
var minorVersionNr = playerVersion.minor; //returns the minor nr: 0
var releaseVersionNr = playerVersion.release; //returns the version nr: 12