Horst: Problem: onclick: sound funktioniert nicht

Beitrag lesen

Das hab ich bis jetzt:

  
<HTML>  
<HEAD>  
<Meta HTTP-EQUIV="content-type" content="text/html; charset=iso-8859-1">  
<Title>  
noise prevention - home  
</Title>  
  
<script src="js/prototype.js" type="text/javascript"></script>  
<script src="js/scriptaculous.js" type="text/javascript"></script>  
<script type="text/javascript">  
  
function loadappear(){  
  
    new Effect.Appear("bodyid");  
  
}  
  
  function Play() {  
    if (document.all) msaudio.src="sounds/click.mp3";  
    if (document.layers) document.nsaudio.play(false);  
  }  
  
  
</script>  
  
<bgsound id="msaudio" src="sounds/start.mp3" loop="1">  
  
</HEAD>  
<BODY bgcolor="black" text="lime" link="lime" alink="silver" vlink="lime" id="bodyid" style="display:none" onload="loadappear()">  
  
<table width="100%" height="100%">  
<tr>  
<td width="100%" height="20%">  
&nbsp;<br>  
  
<font size="4"> &nbsp; </p>  
<table border=0 width="100%" height="20">  
<tr>  
<td align="center" valign="middle" width="3%">  
<img src="images/menu/arrow.gif" width="31" height="16">  
</td>  
<td align="center" valign="left" width="10%" style="cursor:hand;">  
<img src="images/menu/menu_ho.jpg" width="68" height="25"  onMouseover="Play();" onClick="Play2(); window.location.href='home.html'" border=0>  
</td>  
<td align="center" valign="middle" width="3%">  
<img src="images/menu/arrow.gif" width="31" height="16">  
</td>  
<td align="center" valign="left" width="10%" style="cursor:hand;">  
<img src="images/menu/menu_ba.jpg" width="58" height="25" onMouseover="Play();" onClick="window.location.href='band.html'" border=0>  
</td>  
<td align="center" valign="middle" width="3%">  
<img src="images/menu/arrow.gif" width="31" height="16">  
</td>  
<td align="center" valign="left" width="10%" style="cursor:hand;">  
<img src="images/menu/menu_vi.jpg" width="86" height="25" onMouseover="Play();" onClick="window.location.href='videos.html'" border=0>  
</td>  
<td align="center" valign="middle" width="3%">  
<img src="images/menu/arrow.gif" width="31" height="16">  
</td>  
<td align="center" valign="left" width="10%" style="cursor:hand;">  
<img src="images/menu/menu_fo.jpg" width="108" height="25" onMouseover="Play();" onClick="window.location.href='fotos.html'" border=0>  
</td>  
<td align="center" valign="middle" width="3%">  
<img src="images/menu/arrow.gif" width="31" height="16">  
</td>  
<td align="center" valign="left" width="10%" style="cursor:hand;">  
<img src="images/menu/menu_te.jpg" width="99" height="25" onMouseover="Play();" onClick="window.location.href='termine.html'" border=0>  
</td>  
<td align="center" valign="middle" width="3%">  
<img src="images/menu/arrow.gif" width="31" height="16">  
</td>  
<td align="center" valign="left" width="10%" style="cursor:hand;">  
<img src="images/menu/menu_ga.jpg" width="129" height="25" onMouseover="Play();" onClick="window.location.href='gaste.html'" border=0>  
</td>  
</tr>  
</table>  
<hr size="3" noshade align="left" width="100%" color="lime">  
</td>  
</tr>  
<tr>  
<td width="100%" height="70%" align="center" valign="middle">  
  
<img src="images/start.gif" height="100%">  
  
</td>  
</tr>  
<tr>  
<td width="100%" height="10%">  
<iframe src="ticker.html" height="100%" width="35%" scrolling="no" marginheight="0" marginwidth="0" frameborder="0">  
</iframe>  
</td>  
</tr>  
</table>  
  
<!-- Alle div -->  
<div id="clock" style="top: 10; right: 10; position: absolute; z-index: 1; visibility: show;">  
<iframe src="clock.html" width="70" height="20" scrolling="no" marginheight="0" marginwidth="0" frameborder="0">  
</iframe>  
</div>  
<div style="bottom: 10; right: 10; position: absolute; z-index: 0;">  
<embed name="nsaudio" SRC="sounds/click.mp3" mastersound hidden="true" autostart="false">  
</div>  
<!-- Ende "Alle div" -->  
</body>  
</html>  

Jetzt soll aber beim klicken auf die menu-punkte ein sound abgespielt werden.
Das wollte ich so machen:
1. Im HEAD:

  
}  
  
  function Play2() {  
    if (document.all) msaudio.src="sounds/onclick.mp3";  
    if (document.layers) document.nsaudio.play(false);  
  }  

und 2.

  
onclick="Play();window.location [...]  

Das funktioniert aber nicht.

Ich versteh nicht sehr viel von Java und hab mir alles nur zusammengebastelt. Ich hoffe ihr könnt mir helfen.