我正试图让这个 flash carousel 出现在 Wordpress 帖子中。我可以右键单击它应该在的空白区域并调出 Flash 选项菜单,但没有显示电影。它链接到一个提取图像和文本的 xml 文档。这是一个xml问题吗?下面是我放置在我的 wordpress 模板标题中以允许 Flash 电影运行的内容:
<script src="<?php bloginfo('template_directory'); ?>/scripts/swfobject.js" type="text/javascript"></script>
<!-- JavaScript function - called by the animation -->
<script type="text/javascript">
function MyFunction(p1){
alert("You have clicked on: " + p1);
}
</script>
一切都应该包括对主题“脚本”文件夹中的 swfobject 的引用。现在这是我在我正在处理的帖子中的代码:
<!-- BEGIN embed 3D Carousel -->
<!-- This <div> is replaced by the Flash content! (see "SWFObject embed by Geoff Stearns ..." below)
Place your alternate content here and users without the Flash plugin
or with Javascript turned off will see this.-->
<div id="flashcontent">
<br />
<br />
<center>
<a target="_blank" href="http://www.macromedia.com/go/getflash/">
<img border="0" alt="" src="images/getflash.png" />
</a>
</center>
</div>
<!-- SWFObject embed by Geoff Stearns geoff@deconcept.com http://blog.deconcept.com/swfobject/ -->
<script type="text/javascript">
var so = new SWFObject("3dcarouseldev.swf", "3dcarouseldev", "780", "460", "8.0.0.0", "#ffffff");
so.addParam("quality", "high");
so.addParam("scale", "noscale");
so.addParam("menu", "false");
so.addParam("salign", "lt");
so.addParam("wmode", "transparent");
so.addParam("flashvars", "configfile=3dcarousel.xml");
so.write("flashcontent");
</script>
<!-- END embed 3D Carousel -->
即使我正确链接到所有支持文件,这也不起作用的任何原因?Wordpress 不喜欢嵌入 Flash 吗?如果有帮助的话,托管在 Godaddy 上。
谢谢!