Jump to content

Background sound


johnnyk

Recommended Posts

  • 5 weeks later...
Well I'm not positive about the firefox plugin error, but this should work in all browsers:
[hr]
[pre]<embed src="Beethoven's Symphony No. 9 (Scherzo).wma" autostart="true" loop="true" width="500"
height="100">
</embed>
<noembed>
<bgsound src="Beethoven's Symphony No. 9 (Scherzo).wma" loop="infinite">
</noembed>[/pre]
[hr]
just use your sound file instead of that one.
the noembed tags are so that older versions of IE can use it, and it keeps newer versions of IE from reading it and the embeded one and getting an error.
Hope this helps
Link to comment
https://forums.phpfreaks.com/topic/17652-background-sound/#findComment-92413
Share on other sites

<embed> was developed by Netscape in the 90s as part of many proprietary elements during the browser wars between them and MicroSoft. It behaves buggy in Firefox but is supported by Internet Explorer.

That aside if you want to learn about what is called bounce rates put audio on your page and play it without asking the user. It is considered both rude and invasive. For the most part people expect for their browsing experience to be silent unless they are actively using a multimedia file. It was trendy for amateurs to put midi files into their pages and autoplay on load back in the mid 90s. It along with flash sites with obtrusive intros or annoying splash pages are not user oriented and will put off more people that they impress.

If you want people to be interested in the sound you have to offer I would suggest a prominent link in the middle of the page or in an obvious place to say, "Turn On Music" or some such.

Link to comment
https://forums.phpfreaks.com/topic/17652-background-sound/#findComment-96375
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.