为什么这不起作用?
<div class="videocontainer" id='mediaspace-55'></div>
<script type='text/javascript' src='http://ajax.googleapis.com/ajax/libs/swfobject/2.2/swfobject.js?ver=3.0.1'></script>
<script type='text/javascript'><!--
var flashvars = {
provider: "highwinds",
file: "http://hwcdn.net/XXXXX/fms/pathtofile.smil",
image: "test.jpg"
};
var params = {
allowfullscreen: "true",
allowscriptaccess: "always"
};
var attributes = {
id: "mediaspace-55",
name: "mediaspace-55"
};
swfobject.embedSWF("player.swf", "mpl55", "710", "420", "9.0.0","expressinstall.swf", flashvars, params, attributes);
// playerReady('mediaspace-55', 'additional_variable');
//-->
</script>
我确认所有链接文件都存在。
我花了几天时间研究这个简单的javascript功能(我不是一个javascript程序员),现在我想完成项目,它停止了工作。 : - (
答案 0 :(得分:2)
似乎API已更改,请尝试以下操作:
swfobject.embedSWF("http://mydomain.com/player/player.swf", "mpl55", "710", "420", "9.0.0", "expressInstall.swf");