1) For the Embed tag (not the bgsound tag) for the sound add the hidden attribute and 0 sizes
and apply a name to your sound (say "noSound")
<embed src="../sounds/alhambra.mid" name="noSound" autostart="true"
volume="50" loop="true" width="0" height="0" align="center" hidden>
2) Then Insert a "no sound" image or text on the page and then add an onclick event:
<img border="0" src="../images/bt_noplay.gif"
onclick="document.noSound.stop();return true;" alt="Stop Music"
align="absmiddle" width="20" height="20">
3) Or if you are using frames in the head section of one frame add:
<script type="text/javascript" language="JavaScript"><!-- Hide It:
// Where "pgmain" below is the name of the frame containing the embed tag
function killSound() { parent.pgmain.embeds['noSound'].stop(); }
// Show It: --></script>
Then in the body of the same frame add a link:
<a href="javascript:killSound()"><img border="1"
src="../images/bt_noplay.gif" align="absmiddle" alt="Stop Music" hspace="3"
width="20" height="20"></a>
Or for Text:
<a href="javascript:killSound()">No Sound</a>
--
| Is there any way then to totally hide the controls that
| appear as a result of the <embed src... or the frontpage
| addin?
| >-----Original Message-----
| >I don't think you can do that with FrontPage 2000's
| background music.
| >
| message
| >| >> That's the same window I got when I used JavaScript-
| I'm
| >> wanting to have an invisible background music (just
| like
| >> if you use FrontPage 2000's Page Properties menu) but
| >> allow the user to click a text link (e.g. STOP MIDI) to
| >> stop that background music from playing- is there a way
| >> to do that?
| >>
| >> >-----Original Message-----
| >> >You can insert a Windows Media Add-in
| >>
| >
http://www.microsoft.com/frontpage/downloads/addin/search
| >> detail.asp?a=50
| >> >Easily embed Audio and Video into your Web pages.
| >> >
| in
| >> message
| >> >| >> >> I use the frontpage 2000 page properties menu to
| embed
| >> >> music (appears as <bgsound src="
http://midifileX"
| >> loop="-
| >> >> 1"> in HTML code) as it is much neater than the
| >> >> javascript method, however is there any way for
| users
| >> to
| >> >> be able to click on a link and instantly stop my
| >> >> background music from playing- the javascript method
| >> can
| >> >> do this but I can't find a way of doing it for the
| FP
| >> >> method
| >> >
| >> >
| >> >.
| >> >
| >
| >
| >.
| >