Foros del Web » Programando para Internet » Javascript »

Hacer que un scroll mueva a la vez otro

Estas en el tema de Hacer que un scroll mueva a la vez otro en el foro de Javascript en Foros del Web. Saludos!!!! Quisiera conseguir si es posible hacer que un scroll mueva a la vez otro scroll, y que funcionase en Mozilla, si alguien sabe como ...
  #1 (permalink)  
Antiguo 10/03/2011, 04:32
Avatar de veriyo  
Fecha de Ingreso: junio-2010
Mensajes: 80
Antigüedad: 13 años, 10 meses
Puntos: 0
Hacer que un scroll mueva a la vez otro

Saludos!!!!

Quisiera conseguir si es posible hacer que un scroll mueva a la vez otro scroll, y que funcionase en Mozilla, si alguien sabe como hacerlo le estare muy agradecida
  #2 (permalink)  
Antiguo 10/03/2011, 07:39
Avatar de Panino5001
Me alejo de Omelas
 
Fecha de Ingreso: mayo-2004
Ubicación: -34.637167,-58.462984
Mensajes: 5.148
Antigüedad: 20 años
Puntos: 834
Respuesta: Hacer que un scroll mueva a la vez otro

Fijate si te sirve:
Código PHP:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<
html xmlns="http://www.w3.org/1999/xhtml">
<
head>
<
meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<
title>Documento sin título</title>
<
style>
#a,#b{ width:200px; height:200px; overflow:auto}
</style>
</
head>

<
body>
<
div id="a" onscroll="document.getElementById('b').scrolLeft=this.scrolLeft;document.getElementById('b').scrollTop=this.scrollTop">Lorem Ipsum is simply dummy text of the printing and typesetting industryLorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.</div>
<div id="b">Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry'
s standard dummy text ever since the 1500swhen an unknown printer took a galley of type and scrambled it to make a type specimen bookIt has survived not only five centuriesbut also the leap into electronic typesettingremaining essentially unchangedIt was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.</div>
</
body>
</
html
  #3 (permalink)  
Antiguo 12/03/2011, 06:55
Avatar de veriyo  
Fecha de Ingreso: junio-2010
Mensajes: 80
Antigüedad: 13 años, 10 meses
Puntos: 0
Respuesta: Hacer que un scroll mueva a la vez otro

es exactamente lo que buscaba, MUCHAS MUCHAS GRACIAS!!!!
  #4 (permalink)  
Antiguo 14/03/2011, 04:11
Avatar de veriyo  
Fecha de Ingreso: junio-2010
Mensajes: 80
Antigüedad: 13 años, 10 meses
Puntos: 0
Respuesta: Hacer que un scroll mueva a la vez otro

Hola de nuevo, tengo una duda, como podria hacer eso mismo pero con iframes diferentes, me explico, el contenido a estara en un iframe diferente y el b en otro, como podria hacer que el scroll se mueva a la vez en ambos???? Muchas gracias por la ayuda

Etiquetas: scroll
Atención: Estás leyendo un tema que no tiene actividad desde hace más de 6 MESES, te recomendamos abrir un Nuevo tema en lugar de responder al actual.
Respuesta




La zona horaria es GMT -6. Ahora son las 12:25.