문제

I have a website with a master page and I want to play an mp3 file in the background, in every page.

tried bgmusic but its not supported and so is embed.

Any Ideas?

도움이 되었습니까?

해결책

Don't do it. One of the most annoying things in the world is music on a webpage. If absolutely MUST embed an MP3, please, please, please, provide a way for the user to turn it off and/or mute it.

that being said, here is an article with a couple of ways to play an MP3 on your page.

다른 팁

(mandatory xkcd reference, CW because it's not a real answer)

It's like they got together and said 'what do we miss most from the internet in 1998?  that's right, embedded MIDI!'

Alt-text: It's like they got together and said 'what do we miss most from the internet in 1998? that's right, embedded MIDI!'

(link)

Too short, didn't understand it: don't do it, it's fastidious on just about every level: you waste your bandwidth, you waste user's bandwidth, you waste user's PC resources to run a plugin (be it Flash or whatever), you make browsing between pages slower (because the music has to be started each time), but, most important, you make the users of your site hate it because 99% of them just want to read the darn pages and do not care at all about your music.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top