Ver Mensaje Individual
  #10 (permalink)  
Antiguo 28/04/2006, 10:38
Avatar de Cap.Buscapina
Cap.Buscapina
 
Fecha de Ingreso: octubre-2004
Ubicación: Argentina
Mensajes: 836
Antigüedad: 19 años, 6 meses
Puntos: 4
una opcion menos rebuscada sería:
Cita:
<html>
<head>
<script>
var m=1;
function control(){
marq=document.getElementById('marquesina');
boton=document.getElementById('boton');
if(m==0){
marq.start();
m=1;
boton.value="Stop";
}else{
marq.stop();
m=0;
boton.value="Play";
}


}
</script>
</head>

<body>
<marquee id="marquesina" direction="up" behavior="scroll" scrollamount="1" height="100" width="200" scrolldelay="1" >

<table width="200" border="1">
<tr>
<td height="200">asadasdasdasda</td>
</tr>
<tr>
<td height="200">asddasd</td>
</tr>
<tr>
<td height="200">asdasdads</td>
</tr>
</table>
</marquee>
<form><input type="button" value="Stop" id="boton" onClick="control()"></form>
</body>
</html>
Funciona en IE y FF, pero en Opera el stop y play no van.
__________________
by Capitán Buscapina
.