在我的网站上播放声音 [英] Playing sound on my website
本文介绍了在我的网站上播放声音的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
< embed src =1.wav我的网站上播放了背景音乐。 autostart =trueloop =true
width =2height =0>
< / embed>
但是这段代码不会播放无限循环的音乐..
一旦音轨越过它不会重复..
我应该怎么做一次又一次重复音乐。
这是旧的解决方案: http://drayblog.gotdns.com/index.php/2009/05/13/html-embed-an-audio- clip-and-repeat-loop-it /
< EMBED SRC =/ audio / media.mp3 AUTOSTART =trueHIDDEN =TrueLOOP =True/>
< NOEMBED>
< object type =audio / mp3data =http://www.domain.com/audio/media.mp3>< param name =srcvalue =http:// www.domain.com/audio/media.mp3\"></param><param name =autostartvalue =true>< / param>< param name =hiddenvalue = True>< / param>< param name =loopvalue =true>< / param>
< / object>
< / NOEMBED>
I use a code to play background music on my website..
<embed src="1.wav" autostart="true" loop="true"
width="2" height="0">
</embed>
But this code does not play infinite looped music.. Once the sound track gets over it does no repeat.. What should i do to repeat the music again and again..
解决方案
The HTML5 solution is the Audio tag http://www.w3schools.com/tags/tag_audio.asp
This is the older solution: http://drayblog.gotdns.com/index.php/2009/05/13/html-embed-an-audio-clip-and-repeat-loop-it/
<EMBED SRC="/audio/media.mp3" AUTOSTART="true" HIDDEN="True" LOOP="True"/>
<NOEMBED>
<object type="audio/mp3" data="http://www.domain.com/audio/media.mp3"><param name="src" value="http://www.domain.com/audio/media.mp3"></param><param name="autostart" value="true"></param><param name="hidden" value="True"></param><param name="loop" value="true"></param>
</object>
</NOEMBED>
这篇关于在我的网站上播放声音的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文