Click to See Complete Forum and Search --> : sound


kapokampo
04-08-2003, 05:38 AM
I need help to do the following:
1) I need several sonds (wav) on one page.
At present all of them begin to play when the page loads.
Is it possible to load the page and then switch the apropriate sound on?
2) I need a picture to appear when you click on the button "check".
Please, help me with the codes to do this.

Nevermore
04-08-2003, 05:51 AM
1) <embed src="source.wav" autostart="false">

This will give you a little toolbar for each sound. If you want something else, just say so.

2) <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">

<html>
<head>
<title>Untitled</title>
<style>
#hello {
position: relative;
visibility: hidden;
}
</style>
<script language="Javascript" type="text/javascript">
<!--
function show() {
document.getElementById("hello").style.visibility="visible";
}
//-->
</script>
</head>

<body>
<img id="hello" src="view.jpg">
<input type="button" value="Check" onClick="show()">

</body>
</html>


Try That!