Does anyone know what the html code is for when you click a picture, a sound plays.
NOTE: Please can you tell me EXACTLY how to do it, like in stages and explain how to do it
Play Sound on Mouseover or MouseClick: http://www.entheosweb.com/website_design/play_sound.asp
Didn’t test this as I don’t like the embed tag:
Put this between your head tags:
<script type="text/javascript">
function playSound(id){
if(document.embeds) document.embeds["sound"+id].play();
}
</script>
Put this between your body tags:
<embed src="your_sound_file.wav" hidden="true" autostart="false" name="sound1" loop="false">
<p><a onclick="javascript:playSound(’1′);"><img style="width: XXpx; height: YYpx; border: 0;" src="Path to image" alt="Text Description"></a></p>
Put correct path to sound file and image. Hope it works. Using the "object" tags would be better.
Ron