ok i been trying to make it where if u click a image it will make a sound but...

Nathan D

New member
...it only works on IE and notF-Fox? Here the code think 1 of u guys can make it work ??

<html>

<head>
<script>
function EvalSound(soundobj) {
var thissound= eval("document."+soundobj);
thissound.Play();
}
</script>
</head>
<body>
<embed src="TyrandeWhat4.wav" autostart=false hidden=true name="sound1"
type="audio/wav" enablejavascript="true">
<form>
<img src="play.jpeg" value="Play Sound" onClick="EvalSound('sound1')">
</form>

</body>
 
Back
Top