这听起来像一个愚蠢的问题和常见问题解答,但我真的没有任何理由不能运行它。
我尝试使用SWFObject运行一个imagerotator,这就是我得到的错误。我确实包含了swfobject.js文件(可通过直接URL访问),并且我通过XML文件传递参数,该文件也可以独立加载。我确实使用2.2版本。
这里有我的SWF电话:
<div id="slide1"><a href="http://www.macromedia.com/go/getflashplayer">Get the Flash Player</a> to see this rotator.</div>
<div id="rotator"></div>
<script type="text/javascript">
var s1 = new SWFObject("/admin/cms/imagerotator.swf","rotator","606","199","5");
s1.addVariable("file","imagerotator.php");
s1.addParam("allowfullscreen","false");
s1.addVariable("linkfromdisplay", "false");
s1.addVariable("transition","lines");//bgfade,blocks,bubbles,circles,fade,flash,fluids,lines,random,slowfade
s1.addVariable("rotatetime","5");
s1.addVariable("overstretch","false");
s1.addVariable("backcolor","0xFFFFFF");// change if its helps to fit better in design (optional)
s1.addVariable("shuffle","false");
s1.addParam("wmode", "transparent");
s1.addVariable("showicons","false");
s1.addVariable("shownavigation","false");
s1.write("slide1");
</script>
我怀疑SWFobject的这种用法完全不适合这个版本,虽然我使用了CMS 的示例代码,包括这个库的确切版本。