I played with bgsound about a year ago in IE7 and found I could turn
it on and off by something like this:
<input type="button" onclick="document.all['bgsound_ctrl'].src=''"
value="OFF" />
<input type="button" onclick="a
document.all['bgsound_ctrl'].src='whataworld.mid" value="ON" />
<bgsound id="bgsound_ctrl" src="whataworld.mid" loop="0"
autostart="true" >
I'm trying now and can't get it to play at all in IE8.
BGSOUND is not available in IE8 in normal IE8 mode. It can be done in
compatibility mode, however.
I'm very wary of what I find on the internet because much is outdate
but looks as good as the recent stuff.
Does bgsound only work on IE?
yes.
I'd like it to be initially off but tried autostart="true" just to see
if I can get it to work.
Do I need to learn Flash or something like that to play a simple
sound file?
There are other objects you can embed, like the Windows Media bits,
which are supported in other browsers. Flash is a good option, however,
as it has the widest adoption.
I rather not have anything visible on the screen except the button to
play it and maybe one to stop it (and possibly a volume control,
though I think most have a volume control already available)
Even with things like Windows Media player embedding, you can specify
what to show to the user.
--
Gregory A. Beamer
MVP; MCP: +I, SE, SD, DBA
Twitter: @gbworld
Blog:
http://gregorybeamer.spaces.live.com
*******************************************
| Think outside the box! |
*******************************************