gnarlos: Hintegrund Musik abschaltbar ?

hi,

ich soll eine Webseite überarbeiten die derzeit eine permanente Hintergrundmusik (midi file) hat.
Ich möchte diese Musik nun zumindest manuell ein- und ausschaltbar machen (ganz entfernen darf ich sie nicht).

Wie schaff ich das am einfachsten?

Sorry, falls das Problem schon wo im Forum behandelt wurde (hab bei der Suche nichts gefunden).
In dem Fall kann mir bitte wer den link geben?

  1. Hallo,

    habe das Problem irgendwann einmal wie folgt gelöst, ist aber reine Glückssache ob es klappt, da das Abspielen und Ansteuern der Midis vom System des Users abhängt. Probier´s mal aus.

    <object width="1" height="1">
    <embed src="DeineMidi.mid" HIDDEN=TRUE autostart=true NAME="sound1" MASTERSOUND></embed>
    </object>
    <a href="javascript:document.sound1.play()">an</a>
    <a href="javascript:document.sound1.stop()">aus</a>

    Wäre auch an einer Lösung interessiert, die in allen Browsern problemlos klappt ...

    Schöne Grüße aus Solingen

    DerWeb | http://www.derweb.de

    --
    SELFCode: sh:) fo:| ch:| rl:( br:$ br:] n4:( ie:) mo:{ va:| de:[ zu:$ fl:| ss:| ls:[ js:|
    http://emmanuel.dammerer.at/selfcode.html
  2. Hallo,

    oder diese Variante:

    <OBJECT ID="MediaPlayer" classid="CLSID:22d6f312-b0f6-11d0-94ab-0080c74c7e95" CODEBASE="http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=6,4,5,715" width="150" height="50" standby="Loading Microsoft Windows Media Player components..." type="application/x-oleobject">
    <PARAM NAME="FileName"    VALUE="DEINE_MIDI">
    <PARAM NAME="TransparentAtStart" VALUE="true">
    <PARAM NAME="AutoStart"    VALUE="true">
    <PARAM NAME="AnimationatStart"  VALUE="false">
    <PARAM NAME="ShowStatusBar"   VALUE="true">
    <PARAM NAME="ShowControls"   VALUE="true">
    <PARAM NAME="autoSize"    VALUE="false">
    <PARAM NAME="displaySize"   VALUE="false">
    <PARAM NAME="ShowAudioControls"  VALUE="true">
    <PARAM NAME="ShowPositionControls" VALUE="false">
    <EMBED type="application/x-mplayer2" pluginspage="http://www.microsoft.com/Windows/Downloads/Contents/Products/MediaPlayer/" src="DEINE_MIDI" name="MediaPlayer" width="150" height="50" transparentAtStart="1" autostart="1" animationAtStart="0" ShowControls="true" ShowAudioControls="1" ShowPositionControls="0" autoSize="0" ShowStatusBar="1" displaySize="false"></EMBED></OBJECT>

    Schöne Grüße aus Solingen

    DerWeb | http://www.derweb.de

    --
    SELFCode: sh:) fo:| ch:| rl:( br:$ br:] n4:( ie:) mo:{ va:| de:[ zu:$ fl:| ss:| ls:[ js:|
    http://emmanuel.dammerer.at/selfcode.html
    1. <OBJECT ID="MediaPlayer"
      ...

      Mit halbwegs aktuellen IE funktioniert das wirklich gut. Mit Netscape / Mozilla gibts zwar kleinere Probleme aber das nötigste (musik abschalten ;) geht auch.
      Eine für meine Zwecke optimale Lösung, danke dir!

  3. Hallo,

    so sieht das letztere Beispiel aus:
    http://www.rudi-ramada.de/hotelzimmer/musik/abc.htm

    Schöne Grüße aus Solingen

    DerWeb | http://www.derweb.de

    --
    SELFCode: sh:) fo:| ch:| rl:( br:$ br:] n4:( ie:) mo:{ va:| de:[ zu:$ fl:| ss:| ls:[ js:|
    http://emmanuel.dammerer.at/selfcode.html