Ver Mensaje Individual
  #4 (permalink)  
Antiguo 04/06/2002, 04:47
guelan
 
Fecha de Ingreso: enero-2002
Mensajes: 60
Antigüedad: 22 años, 3 meses
Puntos: 0
Re: Dudas De Un Novato

Para poner sonido a un boton yo lo hago directamente con Dreamweaver.
Este es un ejemplo:

<html>
<head>
<title>ReproducirSonido</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<script language="JavaScript">
<!--
function MM_controlSound(x, _sndObj, sndFile) { //v3.0
var i, method = "", sndObj = eval(_sndObj);
if (sndObj != null) {
if (navigator.appName == 'Netscape') method = "play";
else {
if (window.MM_WMP == null) {
window.MM_WMP = false;
for(i in sndObj) if (i == "ActiveMovie") {
window.MM_WMP = true; break;
} }
if (window.MM_WMP) method = "play";
else if (sndObj.FileName) method = "run";
} }
if (method) eval(_sndObj+"."+method+"()");
else window.location = sndFile;
}
//-->
</script>
</head>

<body bgcolor="#FFFFFF">
<input type="submit" name="Submit" value="Reproducir" onClick="MM_controlSound('play','document.CS1 023183528859','sonidos/SONIDO.WAV')">
<EMBED NAME='CS1023183528859' SRC='sonidos/SONIDO.WAV' LOOP=false
AUTOSTART=false MASTERSOUND HIDDEN=true WIDTH=0 HEIGHT=0>
</EMBED>
</body>
</html>

Cambia la ruta donde tengas el sonido y ya está.