HTML - Pregunta

 
Vista:

Pregunta

Publicado por Judit (1 intervención) el 07/04/2006 22:51:38
Buenas tardes!
Mi pregunta es:
¿Existe algun codigo que inserte en html, donde pueda parar o detener una musica que tengo de fondo en mi pag?
Lo quiero es que cuando alguien entre a la pagina le muestre un boton que diga musica off/on dependiendo el caso y asi pueda parar la musica cuando entre, ya que esta arranca automaticamente.

Gracias de antemano
Valora esta pregunta
Me gusta: Está pregunta es útil y esta claraNo me gusta: Está pregunta no esta clara o no es útil
0
Responder

RE:Pregunta

Publicado por Hugo (3 intervenciones) el 10/04/2006 17:13:32
<html>
<head>
<title>Reproductor de música</title>
<script>
cambiar="si";
function porte(){
if (cambiar=="si"){
setTimeout("window.resizeTo(240,420)", 1);
setTimeout("porte()", 2000);
}
}
porte();
</script>
</head>
<body bgcolor="006699" scroll="no">
<bgsound src="" loop="1" id="sound" volume="-2000">
<div id="bravomatch" style="position:absolute; width:201px; height:294px; z-index:1; left: 0px; top: 0px; visibility: visible"><img src="fondo.jpg" width="226" height="278" usemap="#panel" border="0">
<div id="Layer1" style="position:absolute; width:64px; height:23px; z-index:2; left: 66px; top: 218px">
<input type="text" id="finite" style="width: 100%;height: 100%" onkeypress="document.all.sound.loop=document.all.finite.value">
</div>
<div id="Layer2" style="position:absolute; width:210px; height:22px; z-index:1; left: 8px; top: 43px">
<input type="file" name="file" id="file" style="width: 100%;height: 100%;color: 110088">
</div>
<map name="panel">
<area shape="circle" coords="164,166,33" alt="Stop" title="Alto"
onclick="document.all.sound.src=''">
<area shape="rect" coords="191,6,209,23" alt="Cerrar" title="Cerrar"
onclick="javascript:window.close()">
<area shape="circle" coords="49,165,32" alt="Play" title="Reproducir" onclick="document.all.sound.src=document.all.file.value">
<area shape="rect" coords="135,221,211,241" alt="Loop Infinite" title="Loop Infinite"
onclick="document.all.sound.loop='infinite'">
</map>
<div id="Layer3" style="position:absolute; width:212px; height:20px; z-index:3; left: 8px; top: 92px"><img src="volumen.jpg" width="100%" height="100%" usemap="#Volumen" border="0" style="cursor: hand"> </div>
</div>
<map name="panelMap">
<area shape="circle" coords="94,258,52" >
</map>

<div id="vol" style="z-index:2;left: 95;top: 92px;width: 20px;height: 20px;background: 0000ff;position: absolute"></div>
</body>
</html>
Valora esta respuesta
Me gusta: Está respuesta es útil y esta claraNo me gusta: Está respuesta no esta clara o no es útil
0
Comentar