Kan gøres meget simpelt med javascript..
<html>
<head>
<script language="JavaScript"> <!-- // cloak
loaded=false;
function playsound(sound) {
if (!document.embeds) return false; // browser does not support it
if (loaded) {
if (navigator.appName=='Netscape') document.embeds['theClick'].play(false);
else document.embeds['theClick'].Run();
}
return false;
}
function myVoid() { ; }
// uncloak --></SCRIPT>
<body onLoad="loaded=true;">
<embed src="click.wav" name="theClick" volume="60" autostart="false" hidden="true" mastersound>
<a href="javaScript:myVoid()" onClick="return playsound('theClick');">Play</a>
</body>
</html>
Bare tilføj flere links...
Mere du har brug for at vide?