Ver Mensaje Individual
  #6 (permalink)  
Antiguo 01/04/2009, 11:00
Aper
 
Fecha de Ingreso: marzo-2007
Mensajes: 103
Antigüedad: 17 años, 1 mes
Puntos: 0
Respuesta: Mantener scroll en div siempre abajo

Quedo asi...

Código:
function doRefresh() {
var scc = document.getElementById('divchat');
new ajax ('chat.php', { 
		postBody: 'reqtype=refresh&file=' + archivochat,
		update: $('chats')
	});
     scc.scrollTop = scc.scrollHeight + scc.offsetHeight;
}
Simpre que hace el refresh pone abajo de todo al scroll.. ahora, yo quiero que cuando este abajo de todo el scroll baje, pero cuando ester al medio no...

Saludoas