People love it, people hate it. You just can't win.
Here is the javascript code so a visitors browser will automatically be
detected. Insert your file into the two YOURFILE.SND references.
Just don't overdo it for us.
Terry @ F1
<!-- START OF SCRIPT -->
<SCRIPT LANGUAGE="JavaScript">
<!-- Begin
var MSIE=navigator.userAgent.indexOf("MSIE");
var NETS=navigator.userAgent.indexOf("Netscape");
var OPER=navigator.userAgent.indexOf("Opera");
if((MSIE>-1) || (OPER>-1)) {
document.write("<BGSOUND SRC=YOURFILE.SND LOOP=INFINITE>");
} else {
document.write("<EMBED SRC=YOURFILE.SND AUTOSTART=TRUE ");
document.write("HIDDEN=true VOLUME=100 LOOP=TRUE>");
}
// End -->
</SCRIPT>
<!-- END OF SCRIPT -->
Sean Echevarria wrote:
> Mozilla supports the EMBED tag (but you need a plugin to play the file
> you are embedding). Support for the OBJECT tag is not complete in
> regards to plugins.
>
> On Thu, 12 Apr 2001 10:31:53 -0700, "Justin H." <[EMAIL PROTECTED]>
> wrote:
>
> >Aaron Buckner wrote:
> >>
> >> How do you play sound w/ Mozilla? I can't get the EMBED or BGSOUND
> >> property to work.
> >>
> >> Seems like such a simple thing, to have background music on a web page.
> >> I feel like a moron but would love to get our sites working as well as
> >> possible with Mozilla. Thanks yall.
> >>
> >> --
> >> Aaron Buckner
> >> Digital Assassin | Cicada Dynamic Systems
> >> http://cicadadesign.com/
> >> [EMAIL PROTECTED]
> >
> >EMBED and BGSOUND are both proprietary tags. Use the OBJECT tag
> >instead.
> >
> >Justin H.