具有onload,功能或任何其他方法的背景音乐。 [英] Music in background w/ onload, function, or any other method.
问题描述
我需要一个在后台播放歌曲的功能(换句话说,用户无法停止/启动他们必须转到另一个页面或听取它的音乐)
我不是最好的JavaScript我不会做太多,但我希望改变它。
它真的不是如果您可以在页面加载时执行此操作,或者在页面完全加载时启动,则会有所不同。
谢谢,死亡
I need a function that plays a song in the background ( in other words the user can''t stop/start the music they have to go to another page or listen to it )
I''m not the greatest at JavaScript I don''t do much with it, but I''m hoping to change that.
It doesn''t really make a difference if you can do it wile the page is loading or it starts when the page is completely loaded.
Thanks, Death
推荐答案
这会很烦人,但这里是链接。
That would be annoying, but here''s a link.
那会很烦人,但这里是链接。
我正在制作的网站类型,用户会期待音乐,所以它不会烦人,而且我去过w3schools,已经这就是为什么我要求一种方法将它放入一个函数中。
无论如何,谢谢,死亡
The type of site I''m making, the users will expect music, so it wont be "annoying", and I''ve been to w3schools, already thats why I''m asking for a way to put it into a function.
Thanks anyway, Death
我正在制作的网站类型,用户会期待音乐,因此它不会烦人。
The type of site I''m making, the users will expect music, so it wont be "annoying"
也许那应该是可能是。
我玩的声音不大,但您可以尝试使用链接到声音文件的iframe。你介意在屏幕上显示声音播放器吗?
Maybe that should''ve been "could be".
I don''t play much with sound, but you could try using an iframe linked to a sound file. Do you mind the sound player showing on the screen?
这篇关于具有onload,功能或任何其他方法的背景音乐。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!