问题描述
我正在尝试为网站编写一个简单的音频播放器,并且正在使用EMBED ...标签嵌入音频并设置HIDDEN = true,并使用各种JavaScript命令来控制音频播放。对于realplayer和mplayer来说效果很好,但如果设置了隐藏位,则quicktime插件不会响应javascript-是否有任何解决方法?
首先,我建议您使用标准化的对象
html标签,而不要使用 embedd
。
然后,您只需使用CSS隐藏嵌入的音频即可,而不是此 hidden
参数。
更好的是,您应该通过JavaScript使用CSS隐藏它,因为如果您这样做,那么未启用JavaScript但支持CSS的人便可以直接使用插件播放器。 / p>
I'm trying to write a simple audio player for a website, and am using the EMBED... tag to embed the audio and setting HIDDEN="true" and using various javascript commands to control the audio playback. It works fine for realplayer and mplayer but the quicktime plugin doesn't respond to javascript if the hidden bit is set - is there any workaround for this?
First, i suggest you to use the object
html tag which is standardized, embed
is not.
Then you could simply hide your embeded audio using CSS instead of this hidden
param.
Even better, you should hide it using CSS through JavaScript, because if you do it this way, people who don't have JavaScript enabled but support CSS are able use the plugin player directly.
这篇关于访问隐藏的嵌入式QuickTime音频的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!