SWFObject 1.5 .write(“identifier”) 在 Internet Explorer 中不起作用
我正在使用 swfobject 1.5 使用 .write("indexplayer")
在我的页面上放置一个shoutcast播放器,但它在 Internet Explorer 8 中不起作用。我环顾四周,得到的唯一信息发现它是尝试将 defer="defer"
添加到 script 标记,但这不起作用。
这是我当前的代码:
<div id="indexplayer">
<div id="player_error">FLASH / JAVASCRIPT ERROR</div>
</div>
<script type="text/javascript">
var so = new SWFObject("/flash/scplayer.swf", "flashplayer", "280", "26", "8", "#171717");
so.addParam("flashvars", "basic_variables_to_connect_to_shoutcast_server");
so.addParam("wmode", "window");
so.addParam("scale", "noscale");
so.write("indexplayer");
</script>
I'm using swfobject 1.5 to place a shoutcast player on my page using .write("indexplayer")
but it doesn't work in Internet Explorer 8. I've looked around and the only information I found on it was to try adding defer="defer"
to the script tag, but this didn't work.
This is my current code:
<div id="indexplayer">
<div id="player_error">FLASH / JAVASCRIPT ERROR</div>
</div>
<script type="text/javascript">
var so = new SWFObject("/flash/scplayer.swf", "flashplayer", "280", "26", "8", "#171717");
so.addParam("flashvars", "basic_variables_to_connect_to_shoutcast_server");
so.addParam("wmode", "window");
so.addParam("scale", "noscale");
so.write("indexplayer");
</script>
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我使用 2.2 版本并执行以下操作,在每个浏览器中都可以正常工作:
I use version 2.2 and do the following, works fine in every browser: