gpt4 book ai didi

javascript - 错误地嵌入了 Flash 电影 - 猜猜我有罪

转载 作者:行者123 更新时间:2023-11-30 13:43:32 27 4
gpt4 key购买 nike

我已经尝试通过另一个用户的建议,使用嵌入 Flash 的 swfobject 方法。然而,我一定没有那么聪明。

下面是我想出的怪物,但没有电影播放,当我控制+单击(Mac)时,我什至无法将它区分为 Flash 电影......就好像它根本不存在一样。

任何有关如何解决此问题的指导都将不胜感激!

<div id="audioPlayer">
<script type="text/javascript">

var flashvars = {
wimpyApp: "mp3s/wimpy.php",
wimpySkin: "mp3s/skins/skin_transparent.xml",
defaultVisualExt: "jpg"
theVolume: "75"
bufferAudio: "0"
infoDisplayTime: "3"
scrollInfoDisplay: "yes"
startPlayingOnload: "yes"
autoAdvance: "yes"
popUpHelp: "yes"
};
var params = {
embed src="mp3s/wimpy_button.swf"
quality="high"
menu: "false"
loop: "false"
quality: "high"
scale: "noscale"
salign: "lt"
bgcolor: "000000"
wmode: "transparent"
allowScriptAccess: "sameDomain"
};
var attributes = {
id: "myDynamicContent",
name: "myDynamicContent"
};

swfobject.embedSWF("mp3s/wimpy_button.swf", "movie", "250", "140",
"9.0.0","Scripts/expressInstall.swf", flashvars, params, attributes);

</script>

最佳答案

您的对象中缺少很多逗号:

var flashvars = {
wimpyApp: "mp3s/wimpy.php",
wimpySkin: "mp3s/skins/skin_transparent.xml",
defaultVisualExt: "jpg"
theVolume: "75"
bufferAudio: "0"
infoDisplayTime: "3"
scrollInfoDisplay: "yes"
startPlayingOnload: "yes"
autoAdvance: "yes"
popUpHelp: "yes"
};

应该是

var flashvars = {
wimpyApp: "mp3s/wimpy.php",
wimpySkin: "mp3s/skins/skin_transparent.xml",
defaultVisualExt: "jpg",
theVolume: "75",
bufferAudio: "0",
infoDisplayTime: "3",
scrollInfoDisplay: "yes",
startPlayingOnload: "yes",
autoAdvance: "yes",
popUpHelp: "yes",
};

此外,您有一个名为“电影”的 div,对吗?你记得包含 swfobject.js 吗?

<script type="text/javascript" src="_js/swfaddress.js"></script>

关于javascript - 错误地嵌入了 Flash 电影 - 猜猜我有罪,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/870842/

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com