[Javascript] Geluid afspelen

Html code:

< src="Sound/success.wav" autostart="false" name="sound1" enablejavascript="true" style="display: none;" width="0" height="0">
< / embed>

Javascript:

function EvalSound(soundobj) {
var thissound = eval("document." + soundobj);
thissound.Play();
}

Reacties

Populaire posts van deze blog

Hoofdstuk 4 - Les 2

Hoofdstuk 4 - Les 1