关于html中的嵌入声音 [英] About the embeded sound in html

查看:63
本文介绍了关于html中的嵌入声音的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

任何人都可以帮助我....
我想知道为什么单击按钮后我的声音无法播放...
这是我的代码...

anybody can help me....
i want to know why my sound can''t play when i click the button...
this is my code...

<div>
<embed id="sound" src="edited jawi/1alif.mp3" autostart="false" hidden="true" a href="huruf-huruf jawi/1alif.html" target="main" onmouseover="image1.src="nombor/1.gif;" onmouseout="image1.src="button/1alif.gif;"  önclick="document.getElementById(''sound'').play()><img name="image1" src="button/1alif.gif" width="100" height="70"></div>



鼠标事件正常运行,但是当涉及到声音时,声音无法播放...为什么...

感谢您的关注....



the mouse event are running normally but when it come to sound, the sound doesn''t play it... why...

thank for your attention....

推荐答案

不幸的是,这不像标签embed应该起作用.请参阅: http://www.htmlcodetutorial.com/embeddedobjects/_EMBED.html [ http://www.htmlcodetutorial.com/help/ftopic7098.html [ ^ ].

与您想要的东西类似的是HTML5( http://en.wikipedia.org/wiki/HTML5 [ ^ ])标签audio,例如,参见http://www.w3schools.com/html5/tag_audio.asp [ http://en.wikipedia.org/wiki/comparison_of_layout_engines_(HTML5) [ ^ ]. W3C的标准化过程尚未完成.

—SA
Unfortunately, this is not like the tag embed is supposed to work. Please see: http://www.htmlcodetutorial.com/embeddedobjects/_EMBED.html[^]. It depends on plug-in, browser-dependent and can suggest plug-in download, but not really playing the audio file right away.

See also this: http://www.htmlcodetutorial.com/help/ftopic7098.html[^].

Something similar to what you want is HTML5 (http://en.wikipedia.org/wiki/HTML5[^]) tag audio, see, for example, http://www.w3schools.com/html5/tag_audio.asp[^].

Unfortunately, HTML5 is not yet fully supported by any browser, see this: http://en.wikipedia.org/wiki/Comparison_of_layout_engines_(HTML5)[^]. Its standardization process by W3C is not yet complete.

—SA


这篇关于关于html中的嵌入声音的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆