onclick play soundfile
das topic sagt es schon.
ich möchte, wenn ich auf einen schon erstellten button klicke,
das eine kleine soundfile abgespielt wird.
hab selfhtml schon durchsucht und nix gefunden.
ein prob hab ich aber ich poste das script mal hier rein.
<head>
<SCRIPT LANGUAGE="JavaScript">
function news()
{
MeinFenster =
window.open("index2.html", "Zweitfenster", "width=1024,height=768, left=0,top=0,screenX=0,screenY=0, location=no,menubar=no,toolbar=yes,dependent=no,status=yes,scrollbars=no,resizable=yes, ");
MeinFenster.focus();
onclick
}
</SCRIPT>
</head
<body>
<A HREF="javascript:news()" ><img src="fotos/but_news.jpg" hight=100% width=100% alt="FotoSection" align="bottom" border="0" ></a>
</body>
so und wenn ich auf but_news.jpg klicke soll der sound kommen aber ich weiss absolut net wie^^
pls helft mir
das topic sagt es schon.
ich möchte, wenn ich auf einen schon erstellten button klicke,
das eine kleine soundfile abgespielt wird.
hab selfhtml schon durchsucht und nix gefunden.
ein prob hab ich aber ich poste das script mal hier rein.
<head>
<SCRIPT LANGUAGE="JavaScript">
function news()
{
MeinFenster =
window.open("index2.html", "Zweitfenster", "width=1024,height=768, left=0,top=0,screenX=0,screenY=0, location=no,menubar=no,toolbar=yes,dependent=no,status=yes,scrollbars=no,resizable=yes, ");
MeinFenster.focus();
onclick
}
</SCRIPT>
</head
<body>
<A HREF="javascript:news()" ><img src="fotos/but_news.jpg" hight=100% width=100% alt="FotoSection" align="bottom" border="0" ></a>
</body>
so und wenn ich auf but_news.jpg klicke soll der sound kommen aber ich weiss absolut net wie^^
pls helft mir