搜尋 Mozilla 技術支援網站

防止技術支援詐騙。我們絕對不會要求您撥打電話或發送簡訊,或是提供個人資訊。請用「回報濫用」功能回報可疑的行為。

了解更多

Background sounds (bgsound=123.wav) won't play. Why not?

  • 2 回覆
  • 42 有這個問題
  • 15 次檢視
  • 最近回覆由 cor-el

more options

On some of the web sites that I write and host there is a background sound. The html is bgsound=filename.wav. The sounds play on IE but don't play on Firefox. Why not?

This happened

Every time Firefox opened

== always

On some of the web sites that I write and host there is a background sound. The html is bgsound=filename.wav. The sounds play on IE but don't play on Firefox. Why not? == This happened == Every time Firefox opened == always

所有回覆 (2)

more options

bgsound only works in IE and not in other browsers. See http://kb.mozillazine.org/Background_music_does_not_play

See also [tiki-view_forum_thread.php?forumId=1&comments_parentId=392255]

more options

Export the .wav to both .oga and .mp3 formats using Audacity, then do the code like this: <audio autoplay><source src="filename.oga"><source src="filename.mp3"><bgsound src="filename.mp3"></audio> This will play it in the latest versions of all 5 major browsers.