Ver Mensaje Individual
  #1 (permalink)  
Antiguo 06/06/2013, 12:56
wasat
 
Fecha de Ingreso: junio-2013
Ubicación: Madrid
Mensajes: 1
Antigüedad: 10 años, 10 meses
Puntos: 0
Personalizar etiqueta <audio> html5

Hola!,

He utilizado este script que encontre para poner sonido a mi web:

<script type="text/javascript">

function audioplay() {
var audio = document.getElementById("audio1");
var button = document.getElementById("play");
if (audio.paused) {
audio.play();
button.textContent = "II";

} else {
audio.pause();
button.textContent = ">";
}
}

</script>
</a></td>
<td width="22%"><audio id="audio1" loop="loop" autoplay="autoplay" preload="auto">
// Replace these with your own files.
<source src="music.mp3" type="audio/mp3" />
<source src="music.ogg" type="audio/ogg" />
HTML5 Audio is required for this example.
</audio>

<div id="buttonbar">
<button id="play" onclick="audioplay()"><img src="imagenes/audio_on.png" width="55" height="32" /></button>

</div> </td>

Me gustaría poder cambiar los botones "II" y ">" por imágenes, como podría hacerlo?

Gracias.