搜尋 Mozilla 技術支援網站

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

了解更多

I make web pages on angelfire and when I pull up the finished page the music link won't work?

  • 7 回覆
  • 1 有這個問題
  • 29 次檢視
  • 最近回覆由 cor-el

more options

After I finish my web page, using the html code for music of: <BGSOUND SRC="http://ethels-creations.angelfire.com/MUSIC-01/golden-girls.wav" AUTOSTART VOLUME="-100" LOOP="2"> or <embed src="http://ethels-creations.angelfire.com/MUSIC-01/always.mid" loop="5"> or <bgsound src="http://ethels-creations.angelfire.com/MUSIC-01/always.mid" loop="5"> When i pull up the page after saving it, the music won't play. It does play if I pull it up in my internet explorer when it is working. Can you help me

After I finish my web page, using the html code for music of: <BGSOUND SRC="http://ethels-creations.angelfire.com/MUSIC-01/golden-girls.wav" AUTOSTART VOLUME="-100" LOOP="2"> or <embed src="http://ethels-creations.angelfire.com/MUSIC-01/always.mid" loop="5"> or <bgsound src="http://ethels-creations.angelfire.com/MUSIC-01/always.mid" loop="5"> When i pull up the page after saving it, the music won't play. It does play if I pull it up in my internet explorer when it is working. Can you help me

所有回覆 (7)

more options

The <bgsound> element is a non-standard element. Use the <audio> element instead.

http://www.w3.org/wiki/HTML/Elements/bgsound

more options

I don't know which audio element to use. If i use the example in my page as it it works, but when I change the music link to my wav or midi it won't work.

more options
more options

The above link was the one i used and i was unable to figure which one to use.

i do appreciate the help

more options

EMBED or OBJECT should work, but you probably need to specify a type to tell Firefox which plugin to use type="application/x-mplayer2" will make Firefox use the Windows Media Player.

<embed src="http://ethels-creations.angelfire.com/MUSIC-01/always.mid" type="application/x-mplayer2" loop="5"> 

You will have to install the WMP to make this work.

由 cor-el 於 修改

more options

Thanks to both members who tried to help me. i don't know what I am doing wrong, but it isn't working.

more options

The WAV file doesn't work with the audio element (likely it is an unsupported format/codec) and Firefox doesn't support MIDI natively, so you need to use an embed or object to play the WAV file.

  • Media resource http://ethels-creations.angelfire.com/MUSIC-01/golden-girls.wav could not be decoded.

I can play the WAV file on Linux with a plugin using this code. I do not have a plugin to play MIDI, but I can hear the file if I paste the URL in the location/address bar.

<embed src="http://ethels-creations.angelfire.com/MUSIC-01/golden-girls.wav" type="application/x-mplayer2" loop="5">

Otherwise you have to use a Flash media player that can handle this WAV file.